Help with bankrob - 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 with bankrob (
/showthread.php?tid=300756)
Help with bankrob -
remyguys - 01.12.2011
How can i add to a bankrobbing system that when you die within 20 min of the bankrob, you will lose youre earned money.
Example:
I rob the bank, i earned 15k once i earned the money, i need to stay alive for 20 min else i will lose the money.
The robbank is strcmp. If you don't die of course you keep the money..
Thanks in Advance.
Re: Help with bankrob -
LZLo - 01.12.2011
use SetTimerEx with the time and create a public callback for the player which will check the seconds
use a checkpoint, if the player have the robbing variable and the player leave the checkpoint then it will determine a public callback for a player and kill the SetTimerEx before& the new callback will set the player's money down
something like that will be perfect for you
Re: Help with bankrob -
LZLo - 01.12.2011
check out your PMs