Vehicle Health
#6

Here's an example:
pawn Код:
//top
new timername[MAX_PLAYERS];
//onplayercmdtext
    if(strcmp(cmdtext, "/execute", true) == 0)
    {
    timername[playerid] = SetTimerEx("timerfunction", 50, false, "i", playerid);
    }

    if(strcmp(cmdtext, "/kill", true) == 0)
    {
    KillTimer(timername[playerid]);
    }

//the function
forward timerfunction(playerid);
public timerfunction(playerid)
{
//do something
}
https://sampwiki.blast.hk/wiki/SetTimerEx
Reply


Messages In This Thread
Vehicle Health - by cloud9 - 14.06.2009, 05:31
Re: Vehicle Health - by lavamike - 14.06.2009, 05:51
Re: Vehicle Health - by cloud9 - 14.06.2009, 07:15
Re: Vehicle Health - by dice7 - 14.06.2009, 07:19
Re: Vehicle Health - by cloud9 - 14.06.2009, 07:28
Re: Vehicle Health - by dice7 - 14.06.2009, 09:04
Re: Vehicle Health - by Grim_ - 14.06.2009, 09:07
Re: Vehicle Health - by cloud9 - 14.06.2009, 09:22
Re: Vehicle Health - by Grim_ - 14.06.2009, 09:25
Re: Vehicle Health - by cloud9 - 14.06.2009, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)