Помогите найти Плагин который запрещает ставить Sentry Guns напротив респауна и на самом респауне.
Или если можно переделать из этого!)
Code
/* AMX Mod X
* Tripmine Blocker
*
* http://aghl.ru/forum/ - Russian Half-Life and Adrenaline Gamer Community
*
* This file is provided as is (no warranties)
*/
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Tripmine Blocker"
#define VERSION "0.1"
#define AUTHOR "KORD_12.7"
#define BLOCK_RADIUS 50.0
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_tripmine", "fw_TripminePrimaryAttackPre")
}
public fw_TripminePrimaryAttackPre(ent)
{
if(!pev_valid(ent))
return HAM_IGNORED
static origin[3], classname[32]
pev(ent, pev_origin, origin)
ent = -1
while((ent = engfunc(EngFunc_FindEntityInSphere, ent, origin, BLOCK_RADIUS)) != 0)
{
if(pev_valid(ent))
{
pev(ent, pev_classname, classname, charsmax(classname))
if(equal(classname, "info_player_deathmatch") || equal(classname, "info_player_start"))
return HAM_SUPERCEDE
}
}
return HAM_IGNORED
}