Timer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timer (
/showthread.php?tid=134197)
Timer -
bartje01 - 15.03.2010
Hey guys. i have a problem
If I do this:
Code:
}
if(strcmp(cmd, "/materialmission", true) == 0) {
if(matmission == 1) return SendClientMessage(playerid, red, "material Mission is in cool down ");
else
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2139.9497,-2291.2764,20.6646))
{
GameTextForPlayer(playerid,"~B~You've picked up 7500 materials. Wait 10 minutes till you can get your new 7500",5000,5);
PlayerInfo[playerid][Materials]+=7500;
SetTimer("mat",600000,false);
matmission = 1;
}
else
SendClientMessage(playerid,red,"ERROR: You are not at the material factory");
return 1;
}
A timer starts. But it starts for everyone and not just for the player that did /materialmission
please help
Re: Timer - lameguy - 15.03.2010
SetTimerEx
Re: Timer -
bartje01 - 15.03.2010
SetTimerEx("mat",600000,false);
gives an error
Re: Timer -
bartje01 - 17.03.2010
help plox
Re: Timer -
Rzzr - 17.03.2010
use wiki plox
https://sampwiki.blast.hk/wiki/SetTimerEx
Re: Timer -
biltong - 17.03.2010
SetTimerEx("mat",600000,false,"i",playerid);
Fixed.
Re: Timer -
bartje01 - 17.03.2010
Ty dude