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;
}
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] == POLICE || UserInfo[playerid][uWanted] != 0) { SendClientMessage(playerid, -1, "You must have no wanted level to join this class!"); return 0; }
if
else if
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;
}
else 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;
}
else 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;
}
Change the
pawn Код:
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;
}
else 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;
}
else 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;
}
if(gTeam[playerid] == POLICE && GetPlayerWantedLevel(UserInfo[playerid][uWanted]) >= 1)
if(gTeam[playerid] == POLICE && GetPlayerWantedLevel(UserInfo[playerid][uWanted]) >= 1) |
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;
}
else 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;
}
else 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;
}