PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>
new const VERSION[] = "0.0.1"
public plugin_init()
{
register_plugin("Give Defuse To Bots", VERSION, "AMXX Community")
if( find_ent_by_class(-1, "func_bomb_target") > 0 || find_ent_by_class(-1, "info_bomb_target") > 0 )
{
RegisterHam(Ham_Spawn, "player", "Ham__CBasePlayer_Spawn__Post", true)
}
}
public Ham__CBasePlayer_Spawn__Post( id )
{
if( is_user_alive(id) && is_user_bot(id) && cs_get_user_team(id) == CS_TEAM_CT )
{
cs_set_user_defuse(id, 1)
}
}
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.