Posts: 297
Threads: 22
Joined: Apr 2010
Reputation:
0
I donґt want it with IsPlayerAdmin cause I have 3 adminlevels and I want to order which level can use this.
And your script donґt work..
Someone have an other idea?
Posts: 6,129
Threads: 36
Joined: Jan 2009
You can use any colour you want, as long as it's a valid colour.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Flashy
Quote:
Originally Posted by Calgon
You can use any colour you want, as long as it's a valid colour.
|
That wasnґt my question. I know that.
Read the whole topic again and you will know that I search an other thing.
|
pawn Код:
SendClientMessageToAll(COLOR_BRIGHTRED, " ");
Should be correct, providing that you have defined the colour, don't blame me for your poor English please.
Posts: 6,129
Threads: 36
Joined: Jan 2009
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.