How to make a /robbank timer for all players?
#9

pawn Код:
// variable to store the bank status
new bool: bank_robbed = false;

// somewhere to again allow robbing, and set var to false
// so they cannot rob again yet
bank_robbed = true;
SetTimer("allowrob", <time>, false);

// the custom function passed to the timer
public allowrob()
    bank_robbed = false;
This also means that you no longer need an array to check whether or not the player has robbed the bank.
Reply


Messages In This Thread
How to make a /robbank timer for all players? - by 101 - 04.12.2012, 18:31
Re: How to make a /robbank timer for all players? - by Bakr - 04.12.2012, 18:31
Re: How to make a /robbank timer for all players? - by 101 - 04.12.2012, 18:35
Re: How to make a /robbank timer for all players? - by SmithyComp - 04.12.2012, 18:37
Re: How to make a /robbank timer for all players? - by Bakr - 04.12.2012, 18:39
Re: How to make a /robbank timer for all players? - by 101 - 04.12.2012, 18:45
Re: How to make a /robbank timer for all players? - by Bakr - 04.12.2012, 18:57
Re: How to make a /robbank timer for all players? - by 101 - 04.12.2012, 19:01
Re: How to make a /robbank timer for all players? - by Bakr - 04.12.2012, 19:06
Re: How to make a /robbank timer for all players? - by 101 - 04.12.2012, 19:09

Forum Jump:


Users browsing this thread: 2 Guest(s)