need help with scripting the chat clear
#8

This all you do is send a bunch of blank messages to all,

Quote:

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
}
}

Reply


Messages In This Thread
need help with scripting the chat clear - by BarFix - 16.09.2013, 12:40
Re: need help with scripting the chat clear - by EiresJason - 16.09.2013, 12:43
Re: need help with scripting the chat clear - by BarFix - 23.09.2013, 20:19
Re: need help with scripting the chat clear - by DanishHaq - 23.09.2013, 20:24
Re: need help with scripting the chat clear - by EiresJason - 23.09.2013, 20:43
Re: need help with scripting the chat clear - by DanishHaq - 23.09.2013, 20:44
Re: need help with scripting the chat clear - by EiresJason - 23.09.2013, 20:49
Re: need help with scripting the chat clear - by ic3cr3am - 23.09.2013, 21:55
Re: need help with scripting the chat clear - by Konstantinos - 23.09.2013, 21:58
Re: need help with scripting the chat clear - by PT - 23.09.2013, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)