28.10.2009, 15:24
how to put all skins in my script plz help i don't wanna waste time to going on www.sa-mp.com/help and to choose one by oneto put in my script so how to put all skins in a simple way? plz help
IsValidSkin(skinid)
{
#define MAX_BAD_SKINS 22
new badSkins[MAX_BAD_SKINS] =
{ 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289 };
if (skinid < 0 || skinid > 299) return false;
for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; }
#undef MAX_BAD_SKINS
return 1;
}
public OnGameModeInit()
{
for(new i = 0; i < 299; i++)
{
if(IsValidSkin(i))
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
}
return 1;
}
Originally Posted by kLx
Put this in bottom of your script:
pawn Код:
pawn Код:
|
for(new i = 0; i < 299; i++)
for(new i = 0; i < 300; i++)