17.01.2013, 16:00
So i gotta make so when LSPD goes on duty their name becomes BLUE and Medic becomes pink like in PR-RP or LS-RP
but idk how to make it i tried multiple times
but idk how to make it i tried multiple times
SetPlayerColor( playerid, 0x[HERETHEHEXCODE]FF );
//for example:
SetPlayerColor( playerid, 0xFF0000FF ); //this is 100% red
SendClientMessage(playerid, COLOR_WHITE, "* You are now On Duty with your Medic Job and will receive calls from people in need.");
GetPlayerName(playerid,sendername, sizeof,(sendername);
GiveNameSpace(sendername);
format(string, sizeof(string), "[Advert] Paramedic %s is On Duty, /call 911.", sendername);
SetPlayerColor( playerid, 0xE01B6AFF );
BroadCast(COLOR_ALLDEPT,string);
OnDuty[playerid] = 1;