Please Help..."OnPlayerText"
#1

Hi Friends!
I Created A RANK Like This :



But When I'm "Civilian" or "Police" or "Army" or ... My Text Color is Purple.
If some one know how can i fixed help me
plz is too important
i use gTeam and SetPlayerColor, if correlate plz help
thanks :X
*** Sorry For My Bad English ***
Reply
#2

I mean [MASTER] is the color but i wanna the name and id correlate whit he's/her gTeam(SetPlayerColor)
this is the code :
PHP код:
    if(AdminLevel[playerid] == 6)
    {
        new 
string[150], name[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnameMAX_PLAYER_NAME);
        
format(string,sizeof(string),"{8e00db}[MASTER] %s(%d): {FFFFFF}%s",name,playerid,text);
        
SendClientMessageToAll(COLOR_WHITEstring);
        return 
0;
    } 
Reply
#3

I didnt understand, do you mean your color should be which is set according to your team color? If thats then show the function of it.
Reply
#4

yes
if you can give me the phpcode :X
Reply
#5

any body can help me?
Reply
#6

Show your code
Reply
#7

PHP код:
    if(AdminLevel[playerid] == 6
    { 
        new 
string[150], name[MAX_PLAYER_NAME]; 
        
GetPlayerName(playeridnameMAX_PLAYER_NAME); 
        
format(string,sizeof(string),"{8e00db}[MASTER] %s(%d): {FFFFFF}%s",name,playerid,text); 
        
SendClientMessageToAll(COLOR_WHITEstring); 
        return 
0
    } 
Reply
#8

I Want The Player Name And ID Color, Set Whit He's gTeam Color Or SetPlayerColor
Reply
#9

Bro...
You Can Help Me ?
Reply
#10

pawn Код:
format(string, sizeof (string),"{8e00db}[MASTER] {%06x}%s(%d): {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text);
and don't bump because you break the forum rules. There's an edit () button.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)