pawn Код:
#include <a_samp>
// Textdraw
new Text:mytd;
// Create Textdraw
public OnFilterScriptInit()
{
mytd = TextDrawCreate(320, 320, "Hello World!");
return 1;
}
// Entered any checkpoint
public OnPlayerEnterCheckpoint(playerid)
{
ShowDrawTimed(playerid, mytd, 3000);
return 1;
}
// Show a textdraw for the time delay
stock ShowDrawTimed(playerid, Text:td, time)
{
TextDrawShowForPlayer(playerid, td);
return SetTimerEx("DelayTDHide", time, false, "ii", playerid, _:td);
}
// Hide a textdraw after the time delay
forward DelayTDHide(playerid, Text:td);
public DelayTDHide(playerid, Text:td)
{
TextDrawHideForPlayer(playerid, td);
return 1;
}