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.