[Tutorial] [TUT] How to add all skin's avaibles.
#7

Quote:
Originally Posted by Joe Torran C
Better way:

[code=OnGameModeInit]for(new s = 0; s < 299; s++)
{
if(IsValidSkin(s)) AddPlayerClass(s, X, Y, Z, A, -1, -1, -1, -1, -1, -1);
}[/code]

[code=Outside Callback]IsValidSkin(skinid)
{
#define MAX_BAD_SKINS (14)
new
badSkins[MAX_BAD_SKINS] = {
3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289
};
for(new i = 0; i < MAX_BAD_SKINS; i++)
{
if(skinid == badSkins[i]) return false;
}
#undef MAX_BAD_SKINS
return 1;
}[/code]
It says X isnt defined.
Reply


Messages In This Thread
[TUT] How to add all skin's avaibles. - by .(Infinite Imagination). - 13.04.2010, 14:18
Re: [TUT] How to add all skin's avaibles. - by M4S7ERMIND - 13.04.2010, 15:14
Re: [TUT] How to add all skin's avaibles. - by Torran - 13.04.2010, 15:27
Re: [TUT] How to add all skin's avaibles. - by johnathon956 - 14.04.2010, 17:09
Re: [TUT] How to add all skin's avaibles. - by russo666 - 14.04.2010, 17:19
Re: [TUT] How to add all skin's avaibles. - by dice7 - 14.04.2010, 17:23
Re: [TUT] How to add all skin's avaibles. - by MisterTickle - 25.04.2010, 21:01
Re: [TUT] How to add all skin's avaibles. - by GforceNL - 29.04.2010, 17:36
Re: [TUT] How to add all skin's avaibles. - by Torran - 29.04.2010, 17:52
Re: [TUT] How to add all skin's avaibles. - by -Rebel Son- - 29.04.2010, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)