Infinite Skins With for(CivSkins) OnGameModeInit
#1

So im trying to get this script to auto add these skins. So heres what i got under OnGameModeInit:
Код:
for(new i = 0; i < sizeof(CivSkins); i++)
	{
	  for(new b = 0; b < sizeof(BadSkins); b++)
	  {
	    if(BadSkins[b] != CivSkins[i])
	    {
	  			AddPlayerClass(CivSkins[i],2028.8048,1551.5974,26.5878,90.0,0,0,0,0,0,0);
			}
			else
			{
			  printf("WARNING: Bad skin detected. ID %d.",CivSkins[i]);
			}
		}
	}
Here is my two arrays.
Код:
new BadSkins[15] =
{
3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289
};
new CivSkins[4] =
{
271,
270,
269,
272
};
But when i open the game up and join, the skins load, but there are like 20 of each.... What is wrong with it?
Reply


Messages In This Thread
Infinite Skins With for(CivSkins) OnGameModeInit - by tom_jonez - 25.03.2009, 23:20
Re: Infinite Skins With for(CivSkins) OnGameModeInit - by ICECOLDKILLAK8 - 26.03.2009, 00:02
Re: Infinite Skins With for(CivSkins) OnGameModeInit - by tom_jonez - 26.03.2009, 00:07
Re: Infinite Skins With for(CivSkins) OnGameModeInit - by tom_jonez - 26.03.2009, 00:43

Forum Jump:


Users browsing this thread: 1 Guest(s)