Skin help
#4

Quote:
Originally Posted by Niko_boy
Посмотреть сообщение
SetSpawnInfo( playerid, 0, 0, 1649.8920,-2286.4458,-1.2098,180.2326, 26, 36, 28, 150, 0, 0 );
since it Set his spawninfo as CJ skin
so,
SetSkin at onplayerspawn too
by setting then checking variable
like pSex[playerid] = MALE // or female
Then i would use this on OnPlayerRequestClass

pawn Код:
if(PlayerInfo[playerid][Gender]==0)
        {
            new rand = random(sizeof(MaleSkin));
            SetPlayerSkin(playerid, MaleSkin[rand]);

        }
        else
        {
            new rand = random(sizeof(FemaleSkin));
            SetPlayerSkin(playerid, FemaleSkin[rand]);
        }
BUT that would only random a skin when a player connects and thats not what i need. I need to save the skin that player randomed when he selected his gender and then load it when he connects.
Reply


Messages In This Thread
Skin help - by MarinacMrcina - 09.06.2012, 16:32
Re: Skin help - by Vince - 09.06.2012, 16:46
Re: Skin help - by Niko_boy - 09.06.2012, 16:49
Re: Skin help - by MarinacMrcina - 09.06.2012, 16:55
Re: Skin help - by Faisal_khan - 09.06.2012, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)