You could implement the function from Atomics
Spawn Uncommon Infected plugin.
If you want to be real lazy, just install Atomics plugin, then in your own buy plugin add a menu option called "Buy Jimmy horde" which executes
ServerCommand("sm_spawnuncommonhorde jimmy").
Quote:
Originally Posted by RavenDan29
how do they do resurrection on the buy menu to?
|
Resurrection? As in respawning the Survivor? Well funny enough, Atomic happens to have
another plugin for that.
Again, you could copy the function into your own buy plugin. The only thing you are missing is a spot for the Survivor to respawn as the function by default will respawn them all the way back at map start, which might not be ideally if the Survivors are already half way through the map.
Would not be hard to get a fellow Survivors, that is not incapacitated, origin and teleport the respawned Survivor to his teammate.