SA-MP Forums Archive
Please Help..."OnPlayerText" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please Help..."OnPlayerText" (/showthread.php?tid=518274)



Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

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 ***


Re: Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

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;
    } 



Re: Please Help..."OnPlayerText" - Laure - 09.06.2014

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.


Re: Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

yes
if you can give me the phpcode :X


Re: Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

any body can help me?


Re: Please Help..."OnPlayerText" - BroZeus - 09.06.2014

Show your code


Re: Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

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
    } 



Re: Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

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


Re: Please Help..."OnPlayerText" - M0HAMMAD - 09.06.2014

Bro...
You Can Help Me ?


Re: Please Help..."OnPlayerText" - Konstantinos - 09.06.2014

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.