[SOLVED] Question about /wipechat
#8

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;
}
With this script I only can clear teh chat but at the end I donґt get a message which says "Admin xy has clear the chat."
Oh, I see now.

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;
}
Blame ****** Chrome for the indentation.
Reply


Messages In This Thread
[SOLVED] Question about /wipechat - by Flashy - 30.05.2010, 14:09
Re: Question about /wipechat - by DJDhan - 30.05.2010, 14:32
Re: Question about /wipechat - by Flashy - 30.05.2010, 14:58
Re: Question about /wipechat - by Calgon - 30.05.2010, 15:09
Re: Question about /wipechat - by Flashy - 30.05.2010, 15:13
Re: Question about /wipechat - by Calgon - 30.05.2010, 15:17
Re: Question about /wipechat - by Flashy - 30.05.2010, 15:20
Re: Question about /wipechat - by Calgon - 30.05.2010, 15:22
Re: Question about /wipechat - by Flashy - 30.05.2010, 15:31
Re: Question about /wipechat - by iStarzz - 30.05.2010, 15:32

Forum Jump:


Users browsing this thread: 3 Guest(s)