Player = Color - 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)
+--- Thread: Player = Color (
/showthread.php?tid=358222)
Player = Color -
DeeCaay - 09.07.2012
Well today i wanted to make something like
if the player got the skin 102 it will gives him the purple color
I failed my script
Код:
if(GetPlayerSkin >= 102 && SetPlayerColor(playerid,0xC2A2DAAA);
Re: Player = Color -
milanosie - 09.07.2012
pawn Код:
if(GetPlayerSkin(playerid) == 102)
{
SetPlayerColor(playerid, 0xC2A2DAAA);
return 1;
}
Place it on the callback/function where the skin is given
Re : Player = Color -
DeeCaay - 09.07.2012
Thanks.
Re: Player = Color -
sleepysnowflake - 09.07.2012
You can also make it smaller.
pawn Код:
switch(GetPlayerSkin(playerid))
{
case 102: SetPlayerColor(playerid, 0xC2A2DAAA);
// other cases here
}
It is also faster.