This plugin supports targeting a single user, team, or everyone, with or without immunity, depending on compile option. It defaults to not checking for immunity when slaying teams or everyone but checks when slaying an individual.
Required includes:
Usage:#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
amx_wog <nick, #userid, @TEAM or *> : Target is yanked in the air and slammed around like a pinball.
***Tiny bugfix***
I was sometimes getting debug errors in logs for the client_Prethink referring to either the user not existing, or being out of bounds. So I added a little extra code to try and fix that, this is the best way I know how to do it unless someone else has a better method.
Updated again to just one check.
Thanks suicid3if (!is_user_alive(id))
{
return PLUGIN_HANDLED
}
I seriously hope that's the last update at least until I add the gib explosion.
Thanks to Charming's Admin Spin Me plugin for the bounce code. Sorry I couldn't remember where I had found that bit of code, so I'm giving proper credit for it.
get plugin
get source