Help me out plz In client message
#1

Код:
        format(str, 256, "{FFFF66}[VIP]%s [%d]: %s", pName1, playerid, text);
        SendMessageToAll(playerid, GetPlayerColor(playerid), str);
i need only [VIP] in {FFFF66} color
and %s[%d]:%s in player color.
now {FFFF66} color only get displayed

Help me plz
Reply
#2

This should do the job:
PHP код:
format(str256"{FFFF66}[VIP]{%06x}%s [%d]: %s"GetPlayerColor(playerid) >>> 8pName1playeridtext);
SendClientMessageToAll(-1str); 
Make sure you use SetPlayerColor before using GetPlayerColor, check the important note here:
https://sampwiki.blast.hk/wiki/GetPlayerColor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)