#include <a_samp>
new Text:Textdraw0;
public OnFilterScriptInit()
{
// Create the textdraws:
Textdraw0 = TextDrawCreate(36.000000, 150.000000, "Premi Return");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 532.3957,-1291.0244,17.2422))
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
SetTimerEx("TimeUp", 10000, false, "i", playerid);
return 1;
}
return 0;
}
forward TimeUp(playerid);
public TimeUp(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}
[PS]: I remove the other TextDraw for Privacy, this my new script and i want to use it in my future server