Sziasztok csináltam egy tök jo textdrawot de mikor csatlakozik a játékos akkor megjelenik és mikor lespawnolt akkor eltünik.
#include <a_samp>
new Text:Textdraw0;
new Text:Textdraw1;
public OnFilterScriptInit()
{
// Create the textdraws:
Textdraw0 = TextDrawCreate(220.000000, 426.000000, \"[4FUN]Drift Evolution v.2.5\");
TextDrawBackgroundColor(Textdraw0, -16776961);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.679999, 1.700000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 2);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 548.000000, 47.000000);
Textdraw1 = TextDrawCreate(499.000000, 98.000000, \"$000000000\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.539999, 2.000000);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 2);
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
return 1;
}