Random Skins
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
pawn Код:
stock IsMale(skinid)
{
    new const Females[] =
    {
    9,10,11,12,13,31,38,39,40,41,53,54,55,56,63,64,69,75,76,77,85,87,88,89,90,91,92,93,129,130,131,138,139,140,141,    145,148,150,151,
    152,157,169,172,178,190,191,192,193,194,195,196,197,198,199,201,205,207,211,214,215,216,218,219,224,225,226,    231,232,233,237,238,
    243,244,245,246,251,256,257,263,298
    };
    for(new i = 0; i < sizeof(Females); i++)
    {
        if(skinid == Females[i]) return 0;
    }
    return 1;
}
Thank you mate. Also I was wondering, is that it? Is that all I need to put for the gender selection or do I have to put in stock IsFemale(skinid) too?

And another question. I have made this
pawn Код:
stock MaleFemale(playerid)
{
    new string[100];
    format(string, 100, "Please select your gender below:", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_MSGBOX, "Male or Female?", string, "Male", "Female");
}
How can I make it so when the player clicks on Male, it will spawn a random male skin? And is there any sort of saving solution for this? Thanks a lot guys!
Reply


Messages In This Thread
Random Skins - by D.Prizzy - 08.06.2012, 22:12
Re: Random Skins - by Kitten - 08.06.2012, 23:49
Re: Random Skins - by D.Prizzy - 08.06.2012, 23:59
Re: Random Skins - by Vince - 09.06.2012, 00:16
Re: Random Skins - by MP2 - 09.06.2012, 00:21
Re: Random Skins - by D.Prizzy - 09.06.2012, 00:34
Re: Random Skins - by JhnzRep - 09.06.2012, 02:44
Re: Random Skins - by ReneG - 09.06.2012, 02:47
Re: Random Skins - by D.Prizzy - 09.06.2012, 14:26
Re: Random Skins - by MadeMan - 09.06.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)