16.09.2013, 12:40
i need help with scripting something.
i want a command like /clearchat
and that clear the chat.
how to script that.
i want a command like /clearchat
and that clear the chat.
how to script that.
//removed because I do not know what i was thinking writing this command.
(7744) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
CMD:clearchat(playerid, params[])
{
for(new i = 0; i < 100; i ++)
{
SendClientMessageToAll(0xFFFFFFFF, "");
}
return 1;
}
if (strcmp("/clearchat", cmdtext, true, 13) == 0)//the command { if(IsPlayerAdmin(playerid))//is player rcon admin {//then SendClientMessagesForAll(-1, " ");//send blank message to all SendClientMessagesForAll(-1, " ");//send blank message to all SendClientMessagesForAll(-1, " ");//send blank message to all SendClientMessagesForAll(-1, " ");//send blank message to all SendClientMessagesForAll(-1, " ");//send blank message to all SendClientMessagesForAll(-1, " ");//send blank message to all SendClientMessagesForAll(-1, " ");//send blank message to all return 1; } else//if player is not rcon admin {//then SendClientMessages(playerid, -1, "You are not a rcon admin");//send messages to player who used command, but is not rcon admin } } |