My bud and I were testing out my map and when either of us dies and respawns at the beginning of the next round, we spawn in with no guns, then when we do buy a gun from the wall or out of the mystery box, we are then only limited to have 1 gun as we try to buy another, it just replaces the first gun.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
I remember having this issue due to an older version of HarryBo21's perks. Do you currently have them installed and if so, are you using the latest version?
Then add this to the bottom of your mapname.gsc: (If you have a different starting pistol then change zombie_colt to whatever your starting pistol is.)
Code Snippet
Plaintext
give_gun_on_spawn_think() { self endon("disconnect"); flag_wait("all_players_spawned"); //iPrintLn("Running loop on player " + self GetEntityNumber()); while(true) { self waittill("spawned_player"); wait_network_frame(); wait(1); //iPrintLn("Giving a weapon to respawned player " + self GetEntityNumber()); self GiveWeapon("zombie_colt"); self SwitchToWeapon("zombie_colt"); self.hastomahawk = 0; } }
I remember having this issue due to an older version of HarryBo21's perks. Do you currently have them installed and if so, are you using the latest version?
Then add this to the bottom of your mapname.gsc: (If you have a different starting pistol then change zombie_colt to whatever your starting pistol is.)
Code Snippet
Plaintext
give_gun_on_spawn_think() { self endon("disconnect"); flag_wait("all_players_spawned"); //iPrintLn("Running loop on player " + self GetEntityNumber()); while(true) { self waittill("spawned_player"); wait_network_frame(); wait(1); //iPrintLn("Giving a weapon to respawned player " + self GetEntityNumber()); self GiveWeapon("zombie_colt"); self SwitchToWeapon("zombie_colt"); self.hastomahawk = 0; } }
I had the exact same problem and couldn't figure out how to fix it until somebody told me to just add this into your mapname.gsc:
Dunno who told you, and it doesn't really matter but that's YaPh1l's code. He posted that fix on ZM a long time ago.. ( so you can add him to your credits, he was a freaking legend imo )
Dunno who told you, and it doesn't really matter but that's YaPh1l's code. He posted that fix on ZM a long time ago.. ( so you can add him to your credits, he was a freaking legend imo )
Hahaha Sweet! I miss Yaph1l! I remember him and you helping me when I first started getting into custom zombies. Good times. I'll definitely add him to my credits.