13.02.2014, 09:40
pawn Код:
if (strcmp("/setusa", cmdtext, true, 10) == 0||strcmp("/SETUSA", cmdtext, true, 10) == 0) // This is useless commands are not case insensetive.
{
if(IsPlayerAdmin(playerid))
{
new id, pname1[24], string[250];
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Invalid Player");
SetPlayerTeam(id,0);
SetPlayerColor(id,COLOR_BLUETEAM);
gTeam[id] = TEAM_USA;
GetPlayerName(id, pname1, 24);
format(string,sizeof(string), "You've set %s(%d) to Team USA.", pname1, id);
} else { SendClientMessage(playerid,-1,"No authorization."); }
return 1;
}
Make sure you remove ||strcmp("/SETUSA", cmdtext, true, 10) == 0