30.05.2010, 15:22
Quote:
Originally Posted by Flashy
I see that no one understand what I want. Again: I donґt have any problem with the colours!
I just want a Message to all players when a admin clear the chat! Understand now? Код:
dcmd_clear(playerid, params[]) { if(PlayerInfo[playerid][AdminLevel] < 2) return false; for(new i=0; i<30; i++) { SendClientMessageToAll(COLOR_BRIGHTRED, " "); } #pragma unused params return 1; } |
pawn Код:
dcmd_clear(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] < 2) return false;
for(new i=0; i<30; i++)
{
SendClientMessageToAll(COLOR_BRIGHTRED, " ");
}
new
String[ 54 ]
Name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, Name, MAX_PLAYER_NAME );
format( String, sizeof( String ), "Admin %s has cleared the chat.", Name );
SendClientMessageToAll( COLOR_BRIGHTRED, String );
#pragma unused params
return 1;
}