Posts: 125
Threads: 27
Joined: Jan 2014
Reputation:
0
Hello guys i want to ask that how to make only one player rob the store or big robbery places like bank cause at this moment in my server if a player is robbing other player can also rob at that particular time so please help me?
Posts: 460
Threads: 42
Joined: Nov 2009
Reputation:
0
Just create a new variable which checks with the server if the bank is being robbed. If someone robs the bank the variable is set to 1 (true) and when the next player comes to rob the bank the script checks if the variable is true or false. If it's true, then just send a message saying that it's being robbed already.
Posts: 125
Threads: 27
Joined: Jan 2014
Reputation:
0
Can you make that for me cause i'm not that good in making variables still a noobish scripter
Posts: 125
Threads: 27
Joined: Jan 2014
Reputation:
0
Yes but i use Mysql DB will this work on there?
Posts: 3,138
Threads: 257
Joined: Nov 2009
Reputation:
0
I just lend the topic a bit, I have a similar question..
How to make so you can't rob it again if you already robbed it recently?.
I think it will work with a timer and a variable?