Robbery
#5

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
As explained above, assign a variable for example

Код:
new Bankrob = 0;
CMD:robbank(playerid,params[])
{
if(Bankrob = 0)
{
 // do your code when player can rob bank.
Bankrob = 1; // THIS IS THE MAIN!!!!
} else { SendClientMessage(playerid,-1,"The bank is already being robbed.");
}
That's just an example, sorry for not explaining enough im on my phone.
As explained but you obviously need to create some kind of timer aswell so that when the time finnishes the variable is set to 0.
Reply


Messages In This Thread
Robbery - by Crazydriver - 05.02.2014, 14:16
Re: Robbery - by Mystique - 05.02.2014, 14:34
Re: Robbery - by Crazydriver - 05.02.2014, 14:38
Re: Robbery - by DaniceMcHarley - 05.02.2014, 14:38
Re: Robbery - by Mystique - 05.02.2014, 14:42
Re: Robbery - by DaniceMcHarley - 05.02.2014, 14:46
Re: Robbery - by Crazydriver - 05.02.2014, 15:03
Re: Robbery - by Mystique - 05.02.2014, 15:06
Re: Robbery - by davve95 - 05.02.2014, 15:08
Re: Robbery - by Mystique - 05.02.2014, 15:10

Forum Jump:


Users browsing this thread: 3 Guest(s)