[REQUEST] Rob System
#6

Well , This is A REALLY basic Rob System , Here :

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, 2328.8669,-1919.2814,828.1979))//--Change those X Y Z
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not at the bank !");
                return 1;
            }
                    SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
                    robbing[playerid] = 1;
                    LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
                    GivePlayerMoney(playerid, 1000000);
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    SendClientMessageToAll(COLOR_NICEGREEN, " Los Santos Local Bank Trust has Been Broken.");
                    SendClientMessageToAll(COLOR_NICEGREEN, " The Bank is Currentley getting Robbed. ");
                    SendClientMessageToAll(COLOR_NICEGREEN, " We will report more once we get more information");
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    return 1;
                }
            }

Also Add those at the Top :


new robbing[MAX_PLAYERS];
new alreadyrobbed[MAX_PLAYERS];
Reply


Messages In This Thread
[REQUEST] Rob System - by Stefand - 11.11.2011, 14:39
Re: [REQUEST] Rob System - by seanny - 11.11.2011, 14:40
Re: [REQUEST] Rob System - by Hellhound - 11.11.2011, 14:41
Re: [REQUEST] Rob System - by Stefand - 11.11.2011, 14:42
Re: [REQUEST] Rob System - by [MWR]Blood - 11.11.2011, 14:43
Re: [REQUEST] Rob System - by -CaRRoT - 11.11.2011, 14:45
Re: [REQUEST] Rob System - by Stefand - 11.11.2011, 15:04
Re: [REQUEST] Rob System - by -CaRRoT - 11.11.2011, 15:05
Re: [REQUEST] Rob System - by Stefand - 11.11.2011, 15:10
Re: [REQUEST] Rob System - by Stefand - 12.11.2011, 09:35
Re: [REQUEST] Rob System - by danik18 - 15.01.2013, 16:06

Forum Jump:


Users browsing this thread: 2 Guest(s)