[Ajuda] Skin Aleatoriamente
#5

Isto deve resolver o seu problema .


Crйditos ao Garfield pela funзгo IsInvalidSkin .


Coloque:


pawn Код:
//No Final do GM:

#define IsInvalidSkin(%0) ((%0 == 3 || %0 == 4 || %0 == 5 || %0 == 6 || %0 == 7 || %0 == 8 || %0 == 42 || %0 == 65 || %0 == 74 || %0 == 86 || %0 == 119 || %0 == 149 || %0 == 208 || %0 == 268 || %0 == 273 || %0 == 289)?(true):(false)) //By: iGarfield


stock SkinRandom()
{
    new skin = random(299);
    if(IsInvalidSkin(skin)) return SkinRandom();
    else return skin;
}




//Por fim, coloque no response do dialog citado por vocк:


SetPlayerSkin(playerid,SkinRandom());

Espero ter ajudado .
Reply


Messages In This Thread
[Ajuda] Skin Aleatoriamente - by danktog - 05.06.2011, 02:09
Re: [Ajuda] Skin Aleatoriamente - by Ricop522 - 05.06.2011, 02:15
Re: [Ajuda] Skin Aleatoriamente - by danktog - 05.06.2011, 02:18
Re: [Ajuda] Skin Aleatoriamente - by TheGarfield - 05.06.2011, 02:30
Re: [Ajuda] Skin Aleatoriamente - by rjjj - 05.06.2011, 02:49

Forum Jump:


Users browsing this thread: 1 Guest(s)