28.02.2010, 12:37
Код:
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; }