25.07.2015, 22:00
Hello!
It is enough if you write 20 instead of 100 because you can have maximal 20 rows in your chat.
The mistake was that you forgot the "playerid" parameter.
- Mencent
PHP код:
CMD:clearchatall(playerid, params[])
{
if (PlayerData[playerid][pAdmin] < 5)
return SendErrorMessage(playerid, "You cannot use this command.");
for (new i = 0; i < 20; i ++) {
SendClientMessageToAll(-1, "");
}
return 1;
}
CMD:clearchat(playerid, params[])
{
for (new i = 0; i < 20; i ++) {
SendClientMessage(playerid,-1, "");
}
return 1;
}
The mistake was that you forgot the "playerid" parameter.
- Mencent