Rob Bank
#2

pawn Код:
new RobBankAble = 3;
new RobbingBank[MAX_PLAYERS] = 120;
pawn Код:
CMD:robbank(playerid, params[])
{
    if(RobBankAble == 0)
    {
        RobbingBank[playerid] = 120;
        SendClientMessageToAll(-1, "The bank is being robbed.");
    }
}
Using YSI\y_timers:

pawn Код:
timer BankRobTimer[1000]()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(RobbingBank[i] > 0)
        {
            RobbingBank[i]--;
        }
    }
}

timer BankHourWait[3600]()
{
    if(RobBankAble > 0)
    {
        RobBankAble--;
    }
}
This is just a basic setup, I won't give you all the code straight up, you need to figure a little bit out on your own. Hope this helps.
Reply


Messages In This Thread
Rob Bank - by Zumba - 12.04.2013, 20:32
Re: Rob Bank - by zDivine - 12.04.2013, 20:40
Re: Rob Bank - by Zumba - 12.04.2013, 20:42
Re: Rob Bank - by zDivine - 12.04.2013, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)