04.06.2010, 05:37
pawn Код:
forward ClearChat(lines); // forward the function
public ClearChat(lines) // create it
{
for(new i = 0; i < lines; i++) // with a loop to check the lines.
{
SendClientMessageToAll(0xFFFFFFFF," "); // send the message
}
}
pawn Код:
if(strcmp(cmd, "/cc", true) == 0)
{
if(IsPlayerAdmin(playerid)) // change it to whatever you have, else it will only work for rcon
{
ClearChat(100);
}
return 1;
}