#1

So on tab the player colors are being changed by the values of their hp, So I'm thinking how can I do same on the chat?

Код:
    new ChatString[300];
	format(ChatString, sizeof(ChatString),"{958B99}%s {ffffff}( %d ): %s", PlayerName[playerid], playerid, text);
    SendClientMessageToAll(playerid,ChatString);
their name that is.
Reply
#2

get playerid health with
PHP код:
health GetPlayerHealth(playerid); 
and then have different cases
PHP код:
if(health <50 ...format the string how you`d like and etc
if(health >= 50 ... 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)