i got a problem with /robbank
#1

I was trying to rob the bank.I am level 4 a roleplay server.But it say you're level is not high enough
this are the pawn code
pawn Code:
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(PlayerInfo[playerid][pLevel] >= 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "You're level is not high enough");
                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;
            }
                    GivePlayerMoney(playerid,200000000);
                    SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole Money from the bank - Stay low From Cops for few");
                    robbing[playerid] = 1;
                    LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
                    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;
                }
            }
And how can i change the robbing time from 1 hour to 10 minutes?
Reply


Messages In This Thread
i got a problem with /robbank - by $$Money$$ - 29.12.2011, 01:33
Re: i got a problem with /robbank - by $$Money$$ - 29.12.2011, 02:44
Re: i got a problem with /robbank - by spedico - 29.12.2011, 02:49
Re: i got a problem with /robbank - by §с†¶e®РµРe - 29.12.2011, 03:32
Re: i got a problem with /robbank - by $$Money$$ - 29.12.2011, 04:41
Re: i got a problem with /robbank - by N0FeaR - 29.12.2011, 04:45
Re: i got a problem with /robbank - by $$Money$$ - 29.12.2011, 05:01
Re: i got a problem with /robbank - by $$Money$$ - 29.12.2011, 05:07
Re: i got a problem with /robbank - by $$Money$$ - 29.12.2011, 05:36
Re: i got a problem with /robbank - by $$Money$$ - 29.12.2011, 05:49
Re: i got a problem with /robbank - by KingHual - 29.12.2011, 05:55

Forum Jump:


Users browsing this thread: 2 Guest(s)