Set admin Color green in chat log.
#8

instead of line :
Код:
//line 10
format(string, sizeof(string), "(({00FF00}%s:  {FFFFFF}%s ))", GetPlayerNameEx(playerid), params);
put this:
Код:
if (player is admin) // check comment1 bellow
    format(string, sizeof(string), "(({00FF00}%s:  {FFFFFF}%s ))", GetPlayerNameEx(playerid), params);
else 
    format(string, sizeof(string), "((%s:  %s ))", GetPlayerNameEx(playerid), params);
comment1: checking if player is an admin depends on your script, from the code you have given I think this is good checking:

Код:
if(PlayerInfo[i][pAdmin] >= 1)
hope it helped
Reply


Messages In This Thread
Set admin Color green in chat log. - by shaquill - 26.06.2015, 21:16
Re: Set admin Color green in chat log. - by Alex Magaсa - 26.06.2015, 21:24
Re: Set admin Color green in chat log. - by baba1234 - 26.06.2015, 21:33
Re: Set admin Color green in chat log. - by shaquill - 27.06.2015, 00:20
Re: Set admin Color green in chat log. - by Alex Magaсa - 27.06.2015, 15:17
Re: Set admin Color green in chat log. - by shaquill - 29.06.2015, 00:16
Re: Set admin Color green in chat log. - by shaquill - 30.06.2015, 08:30
Re: Set admin Color green in chat log. - by Roko_foko - 30.06.2015, 08:42
Re: Set admin Color green in chat log. - by shaquill - 30.06.2015, 11:27
Re: Set admin Color green in chat log. - by shaquill - 30.06.2015, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)