Help with timer
#2

https://sampwiki.blast.hk/wiki/SetTimerEx
Example:
pawn Код:
CMD:arrest(playerid,params[])
{
    new time;
    SetTimerEx("UnjailTimer",time*1000,"i",playerid);//Note use time*1000 only if you're using per seconds if you want only 200 seconds use 200000 instead of time*1000
    return 1;
}

//Later usage
forward UnjailTime(playerid);
public UnjailTime(playerid)
{
    //Unjail him by using SpawnPlayer(playerid);, however you can either  set his postion
}
Reply


Messages In This Thread
Help with timer - by YanLanger - 30.09.2014, 06:35
Re: Help with timer - by SilentSoul - 30.09.2014, 07:44
Re: Help with timer - by YanLanger - 30.09.2014, 08:00
Respuesta: Re: Help with timer - by !R1Ch@rD! - 30.09.2014, 08:06
Re: Help with timer - by YanLanger - 30.09.2014, 08:12
Re: Help with timer - by Ox1gEN - 30.09.2014, 08:15
Re: Help with timer - by YanLanger - 30.09.2014, 08:16
Respuesta: Re: Help with timer - by !R1Ch@rD! - 30.09.2014, 08:17
Re: Help with timer - by YanLanger - 30.09.2014, 08:21
Respuesta: Re: Help with timer - by !R1Ch@rD! - 30.09.2014, 08:24

Forum Jump:


Users browsing this thread: 3 Guest(s)