Telemenu: Add the ability to teleport in crouched areas

This commit is contained in:
Freeman-AM 2014-05-18 15:32:45 +02:00
parent d2f909981a
commit 9c93cd1283

View File

@ -90,11 +90,13 @@ public actionTelMenu(id, key)
if (g_menuOption[id] > 0)
{
set_pev(player, pev_flags, pev(player, pev_flags) | FL_DUCKING)
engfunc(EngFunc_SetOrigin, player, g_menuOrigin[id])
} else {
new Float:f_origin[3]
pev(id, pev_origin, f_origin)
set_pev(player, pev_flags, pev(player, pev_flags) | FL_DUCKING)
engfunc(EngFunc_SetOrigin, player, f_origin)
}