Check if the player's color is white
#7

Quote:
Originally Posted by shadowdog
Посмотреть сообщение
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:

PHP код:
if(GetPlayerColor(playerid) == 0xFFFFFFFF) return did stuff here
Alright, it works perfectly, reputation given.
Reply


Messages In This Thread
Check if the player's color is white - by dionisak0s - 10.07.2015, 20:09
Re: Check if the player's color is white - by zSuYaNw - 10.07.2015, 20:16
Re: Check if the player's color is white - by dominik523 - 10.07.2015, 20:17
Re: Check if the player's color is white - by shadowdog - 10.07.2015, 20:18
Re: Check if the player's color is white - by dionisak0s - 10.07.2015, 20:20
Re: Check if the player's color is white - by Vince - 10.07.2015, 21:14
Re: Check if the player's color is white - by dionisak0s - 11.07.2015, 05:33

Forum Jump:


Users browsing this thread: 2 Guest(s)