20.04.2014, 17:13
Hello i just saw a ZOMBIE server
but problem is that on class selection only ZOMBIE skin is coming is there any else skin that should come here or it is some bug here's code
but problem is that on class selection only ZOMBIE skin is coming is there any else skin that should come here or it is some bug here's code
Код:
forward SetClass(playerid); public SetClass(playerid){ if(Team[playerid]==ZOMBIE) { if(ZClass[playerid]==STANDARD) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Standard Zombie has a special ability ( PRESS WALK_KEY TO INFECT HUMANS )."); SetPlayerSkin(playerid,ZOMBIE_CLASS_SKIN); Func[playerid]=STANDARD; } else if(ZClass[playerid]==HOWLER) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Howler Zombie has a special ability ( PRESS WALK_KEY TO INFECT HUMANS-DRUNK VISION )."); SetPlayerSkin(playerid,213); Func[playerid]=HOWLER; } else if(ZClass[playerid]==MUTANT) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Mutant Zombie has a special ability ( PRESS WALK_KEY TO INFECT HUMANS-BLIND VISION )."); SetPlayerSkin(playerid,79); Func[playerid]=MUTANT; } else if(ZClass[playerid]==BOOMER) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Boomer Zombie has a special ability ( EXPLODES ON DEATH & SPREAD INFECTION TO NEAREST HUMANS )."); SetPlayerHealth(playerid,10); SetPlayerSkin(playerid,264); Func[playerid]=BOOMER; } else if(ZClass[playerid]==FAST) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Fast Zombie has a special ability ( PRESS WALK_KEY FOR HIGH JUMP )."); SetPlayerSkin(playerid,162); Func[playerid]=FAST; } else if(ZClass[playerid]==SPEEDER) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Speeder Zombie has a special ability ( PRESS WALK_KEY TO RUN FAST )."); SetPlayerSkin(playerid,212); Func[playerid]=SPEEDER; } else if(ZClass[playerid]==STOMPER) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Stomper Zombie has a special ability ( PRESS WALK_KEY FOR PUSHING HUMANS )."); SetPlayerSkin(playerid,78); Func[playerid]=STOMPER; } else if(ZClass[playerid]==REAPER) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Reaper Zombie has a special ability ( PRESS WALK_KEY FOR SPECIAL REPPED ATTACK [-10 HP] )."); SetPlayerSkin(playerid,77); Func[playerid]=REAPER; } else if(ZClass[playerid]==ROGUE) { SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Rogue Zombie has a special ability ( TYPE /ROGUE TO CHANGE TO HUMANS [30 Secs] )."); SetPlayerSkin(playerid,239); Func[playerid]=ROGUE; } } else if(Team[playerid]==HUMAN) { if(HClass[playerid]==CIVILIAN) { Func1[playerid]=CIVILIAN; ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,23,100); GivePlayerWeapon(playerid,25,200); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Civilian has no special ability."); new randomskin = random(6); switch(randomskin) { case 0: SetPlayerSkin(playerid, 5); case 1: SetPlayerSkin(playerid, 7); case 2: SetPlayerSkin(playerid, 12); case 3: SetPlayerSkin(playerid, 21); case 4: SetPlayerSkin(playerid, 26); case 5: SetPlayerSkin(playerid, 56); } } else if(HClass[playerid]==POLICEMAN) { Func1[playerid]=POLICEMAN; SetPlayerSkin(playerid,282); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,25,200); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Policeman has no special ability."); } else if(HClass[playerid]==MEDIC) { Func1[playerid]=MEDIC; SetPlayerSkin(playerid,276); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,23,100); GivePlayerWeapon(playerid,25,200); Medicpacks[playerid]=3; SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Medic has a special ability ( /CURE (ID) TO GIVE ANTIDOTE )."); } else if(HClass[playerid]==HEAVY_SUPPORT) { Func1[playerid]=HEAVY_SUPPORT; SetPlayerSkin(playerid,165); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,31,300); GivePlayerWeapon(playerid,24,200); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Heavy Support has no special ability."); } else if(HClass[playerid]==SCOUT) { Func1[playerid]=SCOUT; SetPlayerSkin(playerid,203); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,34,100); GivePlayerWeapon(playerid,24,200); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Scout has a special ability ( PERFORM HEADSHOTS WITH SNIPER RIFLE )."); } else if(HClass[playerid]==ENGINEER) { Func1[playerid]=ENGINEER; Objects[playerid]=3; SetPlayerSkin(playerid,50); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,23,100); GivePlayerWeapon(playerid,25,200); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Engineer has a special ability ( PRESS MMB TO BUILD A BOX )."); } else if(HClass[playerid]==MI_7) { Func1[playerid]=MI_7; Ammunation[playerid]=5; SetPlayerSkin(playerid,287); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,200); GivePlayerWeapon(playerid,30,300); SetPlayerArmour(playerid,20); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Mi-7 has a special ability ( REFILL AMMUNATION OF CURRENT WEAPON BY PRESSES MMB )."); } else if(HClass[playerid]==SWAT) { Func1[playerid]=SWAT; SetPlayerSkin(playerid,285); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,300); GivePlayerWeapon(playerid,29,500); SetPlayerArmour(playerid,35); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"SWAT. has a special ability ( IMMUNITY AGAINST INFECTIONS )."); } else if(HClass[playerid]==PYROMANIAC) { Func1[playerid]=PYROMANIAC; SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Pyromaniac has a special ability ( SPECIAL FLAMED WEAPONS )."); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,37,350); GivePlayerWeapon(playerid,25,200); SetPlayerSkin(playerid,279); } else if(HClass[playerid]==ADVANCE_ENGINEER) { Func1[playerid]=ADVANCE_ENGINEER; Objects[playerid]=5; SetPlayerSkin(playerid,27); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,31,500); GivePlayerWeapon(playerid,23,200); SetPlayerArmour(playerid,40); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Advance Engineer has a special ability ( BUILD MORE BOXES )."); } else if(HClass[playerid]==REBOT) { Func1[playerid]=REBOT; Tnt[playerid]=5; SetPlayerSkin(playerid,100); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,25,200); GivePlayerWeapon(playerid,29,500); SetPlayerArmour(playerid,50); SendClientMessage(playerid,-1,""COL_WHITE"» "COL_YELLOW"Rebot has a special ability ( BUILD TNT. BARRELS )."); } } return 1; }