Freeze until bank rob ends - 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: Freeze until bank rob ends (
/showthread.php?tid=491572)
dump -
Deniz1467 - 31.01.2014
dump
Re: Freeze until bank rob ends -
Deniz1467 - 31.01.2014
dump
Re: Freeze until bank rob ends -
CuervO - 31.01.2014
TogglePlayerControllable is what you need to add in both the command and the function.
https://sampwiki.blast.hk/wiki/Function:...erControllable
Re: Freeze until bank rob ends -
Deniz1467 - 31.01.2014
Quote:
Originally Posted by CuervO
|
I can't use Pawno very well. Please do it for me, thanks.
Re: Freeze until bank rob ends -
CuervO - 31.01.2014
Quote:
Originally Posted by Deniz1467
I can't use Pawno very well. Please do it for me, thanks.
|
Then how you managed to add that command?
It's very simple, add TogglePlayerControllable(playerid, false); when the player starts robbing the bank (at the command), and then TogglePlayerControllable(playerid, true); when the player finishes robbing the bank (the second function).
While frozen a player wont take any damage, by the way.
Re: Freeze until bank rob ends -
Deniz1467 - 31.01.2014
dump