Help with Robstore
#3

pawn Код:
f(IsSpawned[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
        }
        else if(Jailed[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
        }
        else if(AutoRobbed == 1)
        {
            SendClientMessage(playerid,COLOR_ERROR,"this convience store has been robbed recently, Please wait");
        }
        else if(UsedAutoRecently[playerid] >= 1)
        {
            SendClientMessage(playerid,COLOR_ERROR,"Please wait before using the convience store again");
        }
        else if(IsPlayerInAnyVehicle(playerid))
        {
            format(string, sizeof(string), "You cannot rob the convience store while in a vehicle");
            SendClientMessage(playerid, COLOR_ERROR, string);
        }
        else if(!IsPlayerInCheckpoint(playerid))
        {
            SendClientMessage(playerid,COLOR_ERROR,"You are not in any convience store checkpoint");
        }
        else if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) || gTeam[playerid] == TEAM_IONARMY)
        {
            SendClientMessage(playerid,COLOR_ERROR,"You cannot rob anything");
        }
        else if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 97)
        {
            if(robberrank[playerid] <=2)
            {
                SendClientMessage(playerid,COLOR_ERROR,"Your skill is to low. stick to /rob(ing) players");
            }
        }
Reply


Messages In This Thread
Help with Robstore - by ionaustinb - 25.10.2011, 01:19
Re: Help with Robstore - by Yamoo - 25.10.2011, 01:58
Re: Help with Robstore - by $India$ - 25.10.2011, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)