15.04.2017, 21:38
For the first part:
For the get player colour:
PHP код:
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s[%i]: %s", name, playerid, text);
if (PlayerIgnored[i][playerid] == 0) SendClientMessage(i, COLOR_WHITE, string);
PHP код:
new ptext[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(ptext, sizeof(ptext), "{%06x}%s[%d]:{FFFFFF} %s", GetPlayerColor(playerid) >>> 8, pname, playerid, text);
if (PlayerIgnored[i][playerid] == 0) SendClientMessage(i ,COLOR_WHITE,ptext);