Max robbing level
#8

Try this:
pawn Код:
if(AmmuRecentlyRobbed == 0)
                    {
                        if( GetPlayerWantedLevel( playerid ) >= 6 )
                            return SendClientMessage( playerid, -1, "You must to have less wanted stars to rob the ammunation !" );

                        new chances = random(500);
                        if(chances >= 0 && chances <= 400)
                        {
                            new string[250];
                            RobAmmu[playerid] = 20;
                            AmmuRecentlyRobbed = 150;
                            format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
                            Announce(string);
                            return true;
                        }
                        else if(chances >= 401 && chances <= 500)
                        {
                            new copmsg[250];
                            SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
                            SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
                            SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
                            format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
                            SendRadioMessageToCops(copmsg);
                            AmmuRecentlyRobbed = 100;
                            return true;
                        }
                    }
                    else if(AmmuRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
            }
            else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
        }
I just added
pawn Код:
if( GetPlayerWantedLevel( playerid ) >= 6 )
                            return SendClientMessage( playerid, -1, "You must to have less wanted stars to rob the ammunation !" );
Reply


Messages In This Thread
Max robbing level - by SnG.Scot_MisCuDI - 18.02.2012, 18:58
Re: Max robbing level - by Twisted_Insane - 18.02.2012, 19:03
Re: Max robbing level - by SnG.Scot_MisCuDI - 18.02.2012, 19:16
Re: Max robbing level - by Twisted_Insane - 18.02.2012, 19:28
Re: Max robbing level - by SnG.Scot_MisCuDI - 18.02.2012, 20:09
Re: Max robbing level - by Madd Kat - 18.02.2012, 21:01
Re: Max robbing level - by SnG.Scot_MisCuDI - 18.02.2012, 21:04
Re: Max robbing level - by IstuntmanI - 18.02.2012, 21:05
Re: Max robbing level - by SnG.Scot_MisCuDI - 18.02.2012, 21:56
Re: Max robbing level - by IstuntmanI - 18.02.2012, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)