Multi Starting Skin
#3

Do arrays with skins:
Код:
new Males[] =
{
0,1,...
};
new Females[] =
{
192,...
};
And change your code to:
Код:
if(PlayerInfo[playerid][pSex] == 1)
{
	   new rand = random(sizeof(Males));
       PlayerInfo[playerid][pSkin] = Males[rand];
}
     else
     {
       new rand = random(sizeof(Females));
       PlayerInfo[playerid][pSkin] = Females[rand];
	 }

     SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
     Refund(playerid);
     TogglePlayerControllable(playerid, true);
     return 1;
}
Reply


Messages In This Thread
Multi Starting Skin - by lwilson - 16.12.2014, 14:11
Re: Multi Starting Skin - by lwilson - 17.12.2014, 04:05
Re: Multi Starting Skin - by Raweresh - 17.12.2014, 05:47

Forum Jump:


Users browsing this thread: 1 Guest(s)