robbery help
#1

ok so i made a /robbery and u can rob the store but how do i make it so if its being robbed no1 else can rob it at the same time? ty
Reply
#2

pawn Код:
//top of your script
new
    bool:robbing = false;
//into the /robbery command
  if(robbing == false) {
  robbing = true;
//into the script wich gives the money out at the end of the robbery
  robbing = false;
Reply
#3

ok so when some1 types /robbery and i put robbing = true; itll set it for every1?
Reply
#4

Yes, that's a global variable.
Reply
#5

ok thanks everymuch!!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)