Clearing Chat
#5

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
pawn Код:
CMD:cc(playerid, params[])
{
    new string[128]; // This is the string what is lenght 128 letters
    if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "You are not authorized to use this command."); // This will check if you are rcon logged in

    for(new i=0; i<100; i++) // This will send a empty message 100 times to all players and it will clear the chat
    {
        SendClientMessageToAll(0xFFFFFFAA, "");
    }
    format(string, sizeof(string), "AdmWarning: %s has cleared the chat window.", GetPlayerName(playerid)); // This will show who cleared the chat
    SendClientMessageToAll(0xFFFF00AA, string); // This will send the message to all players
    return 1;
}

Hope I help you
I put this in, And got some errors
pawn Код:
C:\Users\kyle\Desktop\Gates\Codes\Announcing.pwn(17) : error 029: invalid expression, assumed zero
C:\Users\kyle\Desktop\Gates\Codes\Announcing.pwn(17) : error 017: undefined symbol "cmd_cc"
C:\Users\kyle\Desktop\Gates\Codes\Announcing.pwn(17) : error 029: invalid expression, assumed zero
C:\Users\kyle\Desktop\Gates\Codes\Announcing.pwn(17) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Clearing Chat - by RevolutionLite - 25.11.2012, 08:24
Re: Clearing Chat - by Laure - 25.11.2012, 08:30
Re: Clearing Chat - by leetboi - 25.11.2012, 08:31
Re: Clearing Chat - by RenSoprano - 25.11.2012, 08:36
Re: Clearing Chat - by RevolutionLite - 25.11.2012, 08:41
Re: Clearing Chat - by RenSoprano - 25.11.2012, 08:46
Re: Clearing Chat - by RevolutionLite - 25.11.2012, 08:49
Re: Clearing Chat - by McCarthy - 25.11.2012, 09:07
Re: Clearing Chat - by RenSoprano - 25.11.2012, 09:26
Re: Clearing Chat - by RevolutionLite - 25.11.2012, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)