03.06.2011, 18:49
(
Последний раз редактировалось AcTopNN; 13.10.2012 в 09:01.
)
Well, please remove this thread, I know how to work with pawno now. please remove it.
Ok, it works, thanks
But now it writes to me "Only CJ Skin" How do I change it to be all skins? |
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;
}
stock IsValidSkin(SkinID)
{
if(0 < SkinID < 300)
{
switch(SkinID)
{
case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
}
return 1;
}
return 0;
}
Use this:
pawn Код:
pawn Код:
|
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);
}
}
stock IsValidSkin(SkinID)
{
if(0 < SkinID < 300)
{
switch(SkinID)
{
case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
}
return 1;
}
return 0;
}
Put this under your OnGameModeInit()
pawn Код:
pawn Код:
|