GetPlayerColor or something like this - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerColor or something like this (
/showthread.php?tid=238939)
GetPlayerColor or something like this -
ricardo178 - 12.03.2011
Hey people... Someone know how to Get playr color? I want to make a cmd that only allow blue color people to use...
For example, to limit only for admin is:
IsPlayerAdmin
I want it for the color...
Thanks
Re: GetPlayerColor or something like this -
ricardo178 - 12.03.2011
Sorry for spam but can someone help?
Re: GetPlayerColor or something like this -
Skylar Paul - 12.03.2011
pawn Код:
COMMAND:whatever(playerid, params[])
{
if(GetPlayerColor(playerid) == COLOR_BLUE)
{
//Your code
}
return 1;
}
I've never really used it, but here's some documentation that may help you out if my code doesn't work.
GetPlayerColor
Re: GetPlayerColor or something like this -
ricardo178 - 12.03.2011
Thanks
I just can try it later coz i am with problems in GM cmds...
HowEver thanks for help me!