[help]/robbank
#1

I need help with my pawn file.The robbank system.
i added
pawn Код:
GivePlayerMoney(playerid, 200000);
The money when up then when down to my own money value.

This is the full /robbank system
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(PlayerInfo[giveplayerid][pWantedLevel] >= 6)
            {
                SendClientMessage(playerid, COLOR_GREY, "   That player is at the max wanted level !");
                return 1;
            }
            if(alreadyrobbed[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait for 1 hour.");
                return 1;
            }
            if(PlayerInfo[playerid][pLevel] <= 3)
            {
                SendClientMessage(playerid, COLOR_GREY, "You need to be atlest level 3 to rob the bank");
                return 1;
            }
            if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2328.8669,-1919.2814,828.1979))
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not at the bank !");
                return 1;
            }
                    SetTimerEx("RobTimer", 30000, false, "i", playerid);
                    SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole Money from the bank - Stay low From Cops for few minutes");
                    robbing[playerid] = 1;
                    LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
                    GivePlayerMoney(playerid, 200000);
                    SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert:The Los Santos Local Bank is being robbed!");
                    return 1;
                }
            }
Reply


Messages In This Thread
[help]/robbank - by Tamao_Serizawa - 10.01.2012, 01:59
Re: [help]/robbank - by Tamao_Serizawa - 10.01.2012, 02:17
Re: [help]/robbank - by [ABK]Antonio - 10.01.2012, 02:19
Re: [help]/robbank - by Tamao_Serizawa - 10.01.2012, 02:20
Re: [help]/robbank - by [ABK]Antonio - 10.01.2012, 02:22
Re: [help]/robbank - by Tamao_Serizawa - 10.01.2012, 02:24
Re: [help]/robbank - by [ABK]Antonio - 10.01.2012, 02:43
Re: [help]/robbank - by Tamao_Serizawa - 10.01.2012, 02:57
Re: [help]/robbank - by Tamao_Serizawa - 10.01.2012, 03:00
Re : Re: [help]/robbank - by ChrisRedfield00 - 03.05.2012, 15:24

Forum Jump:


Users browsing this thread: 3 Guest(s)