[SOLVED]
#1

Код:
public OnPlayerSpawn(playerid)
{
  S_OnPlayerSpawn(playerid);
  SetPlayerArmour(playerid,100);
  SetPlayerTeamColor(playerid);
	spawn(playerid);
	SendClientMessage(playerid,COLOR_RED,"You have entered the EXTREME WAR !");
	return 1;
}
spawn(playerid, classid)
{
  if (classid == 0)
  {
  GivePlayerWeapon(playerid,31,500);
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,22,500);
  }
	else if (classid == 1)
  {
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,22,500);
  }
  else if (classid == 2)
  {
	GivePlayerWeapon(playerid,35,50);
  GivePlayerWeapon(playerid,22,500);
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,4,500);
  }
  else if (classid == 3)
  {
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,34,250);
  GivePlayerWeapon(playerid,4,50);
	}
  else if (classid == 4)
  {
  GivePlayerWeapon(playerid,31,500);
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,22,500);
  }
  else if (classid == 5)
  {
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,22,500);
  }
  else if (classid == 6)
  {
	GivePlayerWeapon(playerid,35,50);
  GivePlayerWeapon(playerid,22,500);
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,4,500);
  }
  else if (classid == 7)
  {
  GivePlayerWeapon(playerid,32,500);
  GivePlayerWeapon(playerid,34,250);
  GivePlayerWeapon(playerid,4,50);
  }
	return 1;
}
It gives weapons from classid 0 to everyone.
Reply


Messages In This Thread
[SOLVED] - by MaykoX - 28.02.2010, 12:37
Re: What am i doing wrong ? - by Correlli - 28.02.2010, 12:40
Re: What am i doing wrong ? - by notime - 28.02.2010, 12:40
Re: What am i doing wrong ? - by MaykoX - 28.02.2010, 12:51
Re: What am i doing wrong ? - by notime - 28.02.2010, 12:55
Re: What am i doing wrong ? - by [03]Garsino - 28.02.2010, 12:56
Re: What am i doing wrong ? - by MaykoX - 28.02.2010, 12:56
Re: What am i doing wrong ? - by notime - 28.02.2010, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)