Help enum
#1

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 ?
Reply
#2

Код:
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.
Reply
#3

y don't catch you...
where to put this ?
both or 1 ?
Reply
#4

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.
Reply
#5

where to put ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)