hello /robbank help - 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: hello /robbank help (
/showthread.php?tid=286684)
hello /robbank help -
wes231 - 30.09.2011
how to put timer so u can rob bank every 8 hours instead of when ever walk in it says 6 hours on it but its vulnable any time
Re: hello /robbank help -
Kingunit - 30.09.2011
Request Thead?
Re: hello /robbank help -
wes231 - 30.09.2011
huh?
Re: hello /robbank help -
DRIFT_HUNTER - 30.09.2011
pawn Код:
//At top
new BankRobbed;
//Add these check in command
if(BankRobbed == 1) return SendClientMessage(playerid, color,"Bank already robbed return later xD");
//In command when bank is robbed (foe example before SendClientMessage(playerid, color,"You robbed bank");
BankRobbed = 1;
SetTimer("ResetBankRobbery", 28800000, 0);//28800000 is a 8h timer
forward ResetBankRobbery();
public ResetBankRobbery()
{
BankRobbed = 0;
return 1;
}