Quote:
Originally Posted by SoulWeaver16
No, no, I'm looking for a plugin to block map targets
Especially for GunGame AMXX 1.17b (other versions do not work for me), since the command gg_block_objectives 1
It does not prevent the player/bots from embracing with the c4, in vain, because when taking it the command forces them to throw it, this in the bots, causes them to be in the place to spawn T taking the c4 and run to the bombing sites, and return by c4, where they released it.
Try the No Objectives v0.3 (+ no round timer) and No Weapon Drop on Death v0.2 plugins
But No Objectives closes the game for me (I don't know why, because it lets me compile it well and I have the modules)
and the other, I don't know how to configure it so that when you release c4 it disappears like dropping a weapon.
I think it's possible, that is, the Zombie Plague, you can play it on any map and you can block the targets without problems.
|
I think this what you want
Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#define PLUGIN "Remove C4"
#define VERSION "1.0"
#define AUTHOR "author"
new g_pCvarRemoveC4
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
if (find_ent_by_class(-1, "func_bomb_target") || find_ent_by_class(-1, "info_bomb_target"))
{
RegisterHam(Ham_Spawn, "player", "fPlayerSpawnPost", 1)
server_cmd("sv_restart 1");
}
g_pCvarRemoveC4 = register_cvar( "mp_give_player_c4", "1" );
}
public fPlayerSpawnPost()
{
if(get_pcvar_num(g_pCvarRemoveC4))
{
new target = -1, classname[] = "func_bomb_target"
while ((target = find_ent_by_class(target, classname)))
remove_entity(target)
classname = "info_bomb_target"
while ((target = find_ent_by_class(target, classname)))
remove_entity(target)
}
}
if not what you want , then i don't understand you
__________________