Robbed - 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: Robbed (
/showthread.php?tid=335039)
Robbed -
3RoR - 16.04.2012
how to create when a player is robbed the bank and in 1hour to rob again...
Re : Robbed -
jcvag44800 - 16.04.2012
Whis Timer
https://sampwiki.blast.hk/wiki/SetTimer
Re: Robbed -
Jonny5 - 16.04.2012
you should
READ THIS BEFORE POSTING
your requesting a script, which this is not the correct section for that.
Use the "
Script request thread"
or post the code you need help with
regards,
Re: Robbed -
aRoach - 16.04.2012
Make a new variable:
Make a new timer:
pawn Код:
forward Check_IsBankRobbed();
public Check_IsBankRobbed()
{
if(IsBankRobbed) IsBankRobbed = false;
return 1;
}
Put it in the /robbank command, add this:
pawn Код:
IsBankRobbed = true;
SetTimer("Check_IsBankRobbed", 3600 * 1000, false);
Good Luck!
Re: Robbed -
3RoR - 16.04.2012
thanks