23.01.2011, 23:31
Edit : Too slow
Edit 2:
Edit 3: Sorry dunno how to use strcmp
Edit 2:
pawn Код:
if(strcmp(cmd, "/air", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsSpawned[playerid] == 0)
{
SendClientMessage(playerid, COLOR_ERROR, "Your are dead. You cannot use this command");
return 1;
}
if(gTeam[playerid] != TEAM_ARMY)
{
SendClientMessage(playerid, COLOR_ERROR, "This command can only be used by the Army");
return 1;
}
}