10.01.2013, 22:13
Do you mean using STRCMP? OnPlayerCommandText? If yes, here ya go.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/clearchat", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessageToAll(-1, "");
}
}
else SendClientMessage(playerid, -1, "You are not authorized to use this command !");
return 1;
}
return 0;
}