Player = Color
#1

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);
Reply
#2

pawn Код:
if(GetPlayerSkin(playerid) == 102)
{
SetPlayerColor(playerid, 0xC2A2DAAA);
return 1;
}
Place it on the callback/function where the skin is given
Reply
#3

Thanks.
Reply
#4

You can also make it smaller.
pawn Код:
switch(GetPlayerSkin(playerid))
{
case 102: SetPlayerColor(playerid, 0xC2A2DAAA);
// other cases here
}
It is also faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)