27.07.2009, 21:20
Maybe try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/ahelp", true) == 0) // ----------GUNZ COMMAND JUST FOR ADMIN
{
if (gTeam[playerid] == TEAM_COP)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE, "A FEW ADMIN COMMANDS");
return 1;
}
else SendClientMessage(playerid, 0xFF0000AA, "Only COP are authorized to use this command!");
return 1;
}
return 0;
}