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; }
Originally Posted by MaykoX™
Код:
spawn(playerid); |
Originally Posted by Don Correlli
I see you have two params at function spawn (playerid & classid), but you're only using the playerid param:
Quote:
|
forward spawn(playerid);
forward spawn(playerid, classid);
Originally Posted by Notime
then change this:
Код:
forward spawn(playerid); Код:
forward spawn(playerid, classid); |