| Haskyutza |
06-01-2013 01:58 |
Re: How to make the menu for all players!
You must delete just this thing
PHP Code:
if (get_user_flags(id) & ADMIN_IMMUNITY)
so, this is your code
PHP Code:
public PlayAnimation(id)
{
if (is_user_alive(id))
menu_display(id, g_animMenu)
}
public StartDance(id, anim)
{
new seqDesc[SEQ_DESC]
ArrayGetArray(g_iData, anim, seqDesc)
new ent = g_playerData[id][ENT_ANIM]
new modelEnt = g_playerData[id][ENT_MODEL]
set_pev(ent, pev_framerate, 1.0)
set_pev(ent, pev_sequence, anim)
set_pev(ent, pev_gaitsequence, anim)
new Float:origin[3], Float:mins[3]
pev(id, pev_origin, origin)
pev(id, pev_mins, mins)
mins[0] = origin[0]
mins[1] = origin[1]
mins[2] += origin[2]
set_pev(ent, pev_origin, mins)
set_pev(modelEnt, pev_effects, 0)
new model[64]
get_user_info(id, "model", model, 63)
format(model, 63, "models/player/%s/%s.mdl", model, model)
engfunc(EngFunc_SetModel, modelEnt, model)
set_pev(modelEnt, pev_body, pev(id, pev_body))
set_pev(modelEnt, pev_skin, pev(id, pev_skin))
set_pev(ent, pev_controller_0, 128)
set_pev(ent, pev_controller_1, 128)
pev(id, pev_angles, mins)
mins[0] = 0.0
set_pev(ent, pev_angles, mins)
set_pev(ent, pev_v_angle, mins)
engfunc(EngFunc_SetView, id, g_playerData[id][ENT_CAM])
g_playerData[id][ANIM_PLAYING] = 1
set_pev(id, pev_effects, EF_NODRAW)
}
public StopDance(id)
{
set_pev(g_playerData[id][ENT_MODEL], pev_effects, EF_NODRAW)
g_playerData[id][ANIM_PLAYING] = 0
set_pev(id, pev_effects, 0)
engfunc(EngFunc_SetView, id, id)
}
public Dance_MenuHandler(id, menu, item)
{
if(item == MENU_EXIT)
return PLUGIN_HANDLED
new access[32]
get_pcvar_string(g_cvarAccessFlag, access, 31)
if (!(pev(id, pev_flags) & FL_ONGROUND))
{
ChatColor(id, "^4[Jailbreak ExD] ^1You have to be ^3 in the countryi ^1you're using this option!!")
return PLUGIN_HANDLED
}
StartDance(id, item)
menu_display(id, g_animMenu, floatround(item/7.0, floatround_floor))
return PLUGIN_HANDLED
}
|