WantedLevel issue.
#1

Emm, hey, I just had a problem with this. When I've wanted level 0, it doesn't allow me to join cops/fbi/army class, how to fix this?

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(gTeam[playerid] == POLICE || GetPlayerWantedLevel(UserInfo[playerid][uWanted]) >= 1)
    {
        SendClientMessage(playerid, -1, "You must have no wanted level to join this class!");
        return 0;
    }
    if(gTeam[playerid] == FBI || GetPlayerWantedLevel(UserInfo[playerid][uWanted]) >= 1 && GetPlayerScore(playerid) < 500)
    {
        SendClientMessage(playerid, -1, "You need at least 500 score or must have no wanted level to join this class!");
        return 0;
    }
    if(gTeam[playerid] == ARMY || GetPlayerWantedLevel(UserInfo[playerid][uWanted]) >= 1 && GetPlayerScore(playerid) < 1000)
    {
        SendClientMessage(playerid, -1, "You need at least 1000 score or must have no wanted level to join this class!");
        return 0;
    }
    return 1;
}
Please help in advance, it has annoyed me for some days.
Reply


Messages In This Thread
WantedLevel issue. - by LeeXian99 - 05.11.2013, 04:55
Re: WantedLevel issue. - by ikbenremco - 05.11.2013, 05:56
Re: WantedLevel issue. - by LeeXian99 - 05.11.2013, 06:53
Re: WantedLevel issue. - by Zex Tan - 05.11.2013, 09:45
Re: WantedLevel issue. - by JeaSon - 05.11.2013, 09:49
Re: WantedLevel issue. - by SAMProductions - 05.11.2013, 09:49
Re: WantedLevel issue. - by LeeXian99 - 05.11.2013, 09:55
Re: WantedLevel issue. - by Jstylezzz - 05.11.2013, 09:58
Re: WantedLevel issue. - by Zex Tan - 05.11.2013, 10:01
Re: WantedLevel issue. - by JeaSon - 05.11.2013, 10:03

Forum Jump:


Users browsing this thread: 7 Guest(s)