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

in "OnGameModeInit" use this code:

Code:
	for(new i=0;i<300;i++)
	{
	  if((i == 7)||(i >= 9 && i <= 41)||(i >= 43 && i <= 64)||(i >= 66 && i <= 73)
	  ||(i >= 75 && i <= 85)||(i >= 87 && i <= 118)||(i >= 120 && i <= 148)||(i >= 150 && i <= 207)
	  ||(i >= 209 && i <= 264)||(i >= 274 && i <= 288)||(i >= 290 && i <= 299))
	  {
	   AddPlayerClass(i, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	  }
	}
Explication:

Code:
for(new i=0;i<300;i++)
Loop's a variable (starts to 0, and end in 300 (avaible skins))

Code:
	  if((i == 7)||(i >= 9 && i <= 41)||(i >= 43 && i <= 64)||(i >= 66 && i <= 73)
	  ||(i >= 75 && i <= 85)||(i >= 87 && i <= 118)||(i >= 120 && i <= 148)||(i >= 150 && i <= 207)
	  ||(i >= 209 && i <= 264)||(i >= 274 && i <= 288)||(i >= 290 && i <= 299))
if looped variable is exist's skin.

Code:
AddPlayerClass(i, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Creates the AddPlayerClass..

Thanks to: AlexPoison
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)