View Single Post
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#5)
AlexBreems
Member
 
Status: Offline
Posts: 55
Join Date: Feb 2008
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 01-05-2008

The same principle of work in the relation "Defuse Kit" at a plugin "No Weapon Drop" by VEN

Bold font a piece from a plugin responsible for it:

public event_death() {
new id = read_data(2)
if (!(get_pcvar_num(g_pcvar_state) & FLAG_DEAD) || !(get_pcvar_num(g_pcvar_teams) & FLAG_CT) || !cs_get_user_defuse(id))
return

if (CONTAIN_FLAG_OF_INDEX(get_pcvar_num(g_pcvar_allow ), DEFUSER))
return

cs_set_user_defuse(id, 0)
set_pev(id, pev_body, 0) // backward compatibility

}
  
Reply With Quote