Code:
if(user_has_weapon(id, CSW_HEGRENADE))
{
engclient_cmd(id, "weapon_hegrenade");
// set animation
set_task(1.5, "revert_back", id); // change 1.5 to the length of the animation
}
Code:
public revert_back( id )
{
client_cmd(id, "lastinv"); // or w/e is bound to the 'q' key ..
}
Not 100% sure it'll work but w/e, I'm tired
__________________