Clearchat
#6

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
    }
}
Example Use, this will clear everyone's chat

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


Messages In This Thread
Clearchat - by Ihsan_Cingisiz - 04.06.2010, 05:06
Re: Clearchat - by ettans - 04.06.2010, 05:07
Re: Clearchat - by Ihsan_Cingisiz - 04.06.2010, 05:08
Re: Clearchat - by Bomber - 04.06.2010, 05:18
Re: Clearchat - by cessil - 04.06.2010, 05:35
Re: Clearchat - by CuervO - 04.06.2010, 05:37
Re: Clearchat - by On_Top_Non_Stop - 04.06.2010, 07:58

Forum Jump:


Users browsing this thread: 1 Guest(s)