How to make some command for some color only - 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: How to make some command for some color only (
/showthread.php?tid=79389)
How to make some command for some color only -
Jakku - 28.05.2009
Hi!
I want to make some commands for some color only example blue. Must I use GetPlayerColor or something?
Could you give me an example
Re: How to make some command for some color only -
Gamer007 - 28.05.2009
Код:
if(GetPlayerColor(playerid) == COLOR_BLUE)
{
// code here
}
else
{
SendClientMessage(playerid,COLOR_RED,"You don't have color blue.");
}
return 1;
}
change color_Red to ur color, should work.
Re: How to make some command for some color only -
Jakku - 28.05.2009
Thanks. I forgot how to make that so I asked :P