[HELP] Bank rob
#6

Quote:
Originally Posted by Pz
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/robbank", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(robbing[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
                return 1;
            }
            if(alreadyrobbed[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
                return 1;
            }
            if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2308.8071,-13.2485,26.7422))
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not at the bank !");
                return 1;
            }
                    SendClientMessage(playerid, COLOR_WHITE, " You started to rob the bank, This will take 10 minutes");
                    SetTimerEx("bankrob", 600000, false, "i", playerid);
                    robbing[playerid] = 1;
                    LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    SendClientMessageToAll(COLOR_WHITE, " The bank is currently getting robbed.");
                    SendClientMessageToAll(COLOR_WHITE, " We are currently waiting for the cops");
                    SendClientMessageToAll(COLOR_WHITE, " We will report more when we get more information");
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    return 1;
                }
            }
Actually, thats how to make everyone rob it, but a 5 star civilian shouldn't be added automatically, its recommended to get LEO factions in your roleplaying server to do that.
Could you stop copy paste my codes ? Go learn pawn kid.
Reply


Messages In This Thread
[HELP] Bank rob - by ConsoleX - 14.03.2011, 03:25
Re: [HELP] Bank rob - by Marricio - 14.03.2011, 03:45
Re: [HELP] Bank rob - by ConsoleX - 14.03.2011, 13:34
Re: [HELP] Bank rob - by XFlawless - 14.03.2011, 13:47
Re: [HELP] Bank rob - by Pz - 14.03.2011, 13:49
Re: [HELP] Bank rob - by XFlawless - 14.03.2011, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)