10.07.2015, 20:18
GetPlayerColor returns 0 when the color is not set or the player is not connected.
I would highly recommend setting a variable for the player's color, but if you really want to get their color, approach like this:
I would highly recommend setting a variable for the player's color, but if you really want to get their color, approach like this:
PHP код:
if(GetPlayerColor(playerid) == 0xFFFFFFFF) return did stuff here.