SA-MP Forums Archive
Help wit SetTimerEx - 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: Help wit SetTimerEx (/showthread.php?tid=287942)



Help wit SetTimerEx - Hayley - 05.10.2011

Hello i will want a timer for the player must wait 5minutes for do the command /acceptermort when he die,
Can you help me?

Thanks


Re: Help wit SetTimerEx - zombieking - 05.10.2011

pawn Код:
//at the top of script
forward Timer(playerid);
//somewhere outside any callback
public Timer(playerid)
{
//CODE HERE
return 1;
}
//at onplayerdeath
SetTimer("Timer",300000,0);



Re: Help wit SetTimerEx - =WoR=G4M3Ov3r - 05.10.2011

post your /accepermort code.


Re: Help wit SetTimerEx - SuperViper - 05.10.2011

pawn Код:
#include <YSI\y_timers>

Delay:Timer[300000, i](playerid) {
    // Do your stuff here
}



Re: Help wit SetTimerEx - ServerScripter - 05.10.2011

/acceptermort = /acceptdie , used whene player have less 10HP , so he have two Choices , /acceptdie or wait a Doctor...