Quote:
Originally Posted by FiFiX
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".
__________________