02.12.2010, 19:38
pawn Код:
if(gTeam[playerid] == TEAM_COP && PlayerInfo[playerid][pRank] == 1 || gTeam[playerid] == TEAM_ARMY && PlayerInfo[playerid][pRank] == 2)
{
SendClientMessage(playerid, COLOR_WHITE, "Error: Cops only for this feature!");
return 1;
}
this is what you need to do:
pawn Код:
if(gTeam[playerid] != TEAM_COP && PlayerInfo[playerid][pRank] == 1 || gTeam[playerid] != TEAM_ARMY && PlayerInfo[playerid][pRank] == 2)
{
SendClientMessage(playerid, COLOR_WHITE, "Error: Cops only for this feature!");
return 1;
}