View Single Post
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 06-20-2011 , 17:06   Re: ham_give_weapon and ham_strip_weapon
Reply With Quote #48

Quote:
Originally Posted by FiFiX View Post
So if I'll make something like:
Code:
if(!g_bombremove)
{
       ham_strip_weapon(id,"weapon_c4");
       g_bombremove = true;
}
it will slove that problem? Anyway is there another way to remove c4 ?
You can still use CurWeapon event, just set a task to call ham_strip_weapon, like
Code:
    /* CurWeapon event */     set_task(0.1, "remove_c4", id)
Code:
public remove_c4(id) {     if (!is_user_alive(id)) return;     ham_strip_weapon(id, "weapon_c4") }
I know it's not pretty, but it shold get rid of "Run time error 3: stack error".
__________________

Last edited by MeRcyLeZZ; 06-20-2011 at 17:09.
MeRcyLeZZ is offline