PHP Code:
stock set_user_longjump(iPlayer, _on = 1) { //force lj to a player, when other methods fail
if (!is_user_connected(iPlayer))
return
if (_on)
{
set_pdata_int(iPlayer,291,1,5)
engfunc(EngFunc_SetPhysicsKeyValue, iPlayer, "slj","1")
}
else
{
set_pdata_int(iPlayer,291,0,5)
engfunc(EngFunc_SetPhysicsKeyValue, iPlayer, "slj","0")
}
}
PHP Code:
set_user_longjump(id,0)
EDIT: this is only for long-jump, in other case you have to strip all weapons, and give them back except what you wanted to remove
__________________