Help. - 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: Help. (
/showthread.php?tid=650637)
Help. -
ivndosos - 03.03.2018
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.
Re: Help. -
PepsiCola23 - 03.03.2018
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 ...