17.03.2012, 19:22
Код:
if(gTeam[playerid] == TEAM_ARMY && CanUseArmy[playerid] != 1337) { SendClientMessage(playerid,COLOR_ERROR,"You do not have permission to use this class."); return 0; }
if(gTeam[playerid] == TEAM_ARMY && CanUseArmy[playerid] != 1337) { SendClientMessage(playerid,COLOR_ERROR,"You do not have permission to use this class."); return 0; }
SetPlayerSkin(playerid, 287);
if (strcmp("/setarmy", cmdtext, true) == 0) { CanUseArmy[playerid] = 1337; gTeam[playerid] = TEAM_ARMY; return 1; }
if (strcmp("/setarmy", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid)) CanUseArmy[playerid] = 1337;
else SendClientMessage(playerid, 0xFFFFF, "You are not authorized to use this command!");
return 1;
}
if (strcmp("/removearmy", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid)) CanUseArmy[playerid] = 0;
else SendClientMessage(playerid, 0xFFFFF, "You are not authorized to use this command!");
return 1;
}