hello
let's say i gave a terrorist a defuser kit
PHP Code:
cs_set_user_defuse(id)
and then
PHP Code:
RegisterHam(Ham_Use, "grenade", "C4Used")
what should i write after i know that the defuser is a terrorist
PHP Code:
public C4Used(iC4, id, idactivator, use_type, Float:value)
{
if(use_type == 2 && value == 1.0 && get_user_team(id) == 1){
//plz help .. i want this terro to be able to defuse now. !
}
}
i'm writing this plugin so that a ct can pick up the dropped bomb and plant it.
then terrorists have to defuse it.
i have been able to prevent ct from defusing
PHP Code:
if(use_type == 2 && value == 1.0 && get_user_team(id) == 2){
return HAM_SUPERCEED
}
but it got trickier when i wanted to allow a terrorist to defuse that c4 bomb.
help!
__________________