Help enum - 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 enum (
/showthread.php?tid=327756)
Help enum -
3RoR - 22.03.2012
y have a system a bank rob, now how to create a pBankRob, when the bank is not robbing the player can't crack the safe(y create a command /getmoney)when the bank is robbing the player can use /getmoney,if isn't robbing the player can't /getmoney from the safe ? how to create this ?
Re: Help enum -
Basssiiie - 22.03.2012
Код:
SetPVarInt(playerid, "IsRobbing", 0 or 1 to enable/disable robbing);
and
Код:
if (GetPVarInt(playerid, "IsRobbing") == 0 or 1) // check if player is robbing or not.
It ain't that hard.
Re: Help enum -
3RoR - 22.03.2012
y don't catch you...
where to put this ?
both or 1 ?
Re: Help enum -
Basssiiie - 22.03.2012
With the first function you can choose if the player is allowed to rob.
With the second function you can check if the player is allowed to rob.
Basic scripting, my friend. It ain't that hard.
Re: Help enum -
3RoR - 22.03.2012
where to put ?