need some help from you
#3

Your code is a bit hard for me to understand so I just have a few things and I hope it helps.
First you would need to add a variable once a player starts a robbery, like so:
Код:
new RobberyInProgress[MAX_PLAYERS]
Change the variable once they start the robbery like this:
Код:
if(chances >= 0 && chances <= 400)
{
    new string[250];
    RobberyInProgress[playerid] = 1;
    ROBBING_BANK1[playerid] = 30; // setting the robbery timer
    bankrobbedrecently1 =200; // Time the players needs to wait for starting an another robbery in the same place
    SetPlayerWantedLevel(playerid,4);
    format(string, sizeof(string), "Committed A Crime: Bank Robbery - Wanted Level 4 - Arrestable");
    SendClientMessage(playerid, ROJO, string);
    return true;
}
Then we add an if statement under OnPlayerDeath:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(RobberyInProgress[playerid] == 1)
    {
         bankrobbedrecently1 = 200;
         ROBBING_BANK2[i] =0;
         
    }



}
BTW, it's 'great' instead of 'gread'
Reply


Messages In This Thread
need some help from you - by STONEGOLD - 13.06.2015, 22:02
Re: need some help from you - by STONEGOLD - 14.06.2015, 01:10
Re: need some help from you - by WilliamOordt - 14.06.2015, 02:09

Forum Jump:


Users browsing this thread: 1 Guest(s)