03.06.2011, 19:09
(
Последний раз редактировалось Stigg; 03.06.2011 в 20:07.
)
Quote:
Ok, it works, thanks
But now it writes to me "Only CJ Skin" How do I change it to be all skins? |
pawn Код:
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;
}
pawn Код:
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;
}