SA-MP Forums Archive
Countdown textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Countdown textdraw (/showthread.php?tid=357043)



Countdown textdraw - newbienoob - 05.07.2012

Hey! Can someone show me an example of how to make a countdown textdraw when someone enters a checkpoint? I've searched through ******, but I can't found it.


Re: Countdown textdraw - kaloqn54 - 05.07.2012

Do you have all includes so i can text the code ?


Re: Countdown textdraw - kaloqn54 - 05.07.2012

or can you give me the script or the code please so i can see the event


Re: Countdown textdraw - newbienoob - 05.07.2012

Here's what I got
pawn Code:
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
    if(team[playerid] == trteam)
    {
        if(checkpointid == cp)
        {
            new str[50];
            cptime1 = SetTimerEx("cptime",15000,false,"i",playerid);
            format(str,sizeof(str),"%d",cptime1);
            TextDrawSetString(timer,str);
            TextDrawShowForPlayer(playerid,timer);
        }
        return 1;
    }
But it keep increasing whenever I enter and leave the checkpoint.