30.09.2014, 07:44
https://sampwiki.blast.hk/wiki/SetTimerEx
Example:
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
}