PHP Code:
#include <amxmodx>
#include <hamsandwich>
new First;
new Last;
public plugin_init()
RegisterHam(Ham_Player_Jump, "player", "OnJump", 1);
public OnJump(client)
{
if (!First)
First = client;
Last = client;
}
Hello and how do I turn through a menu, and use the Glow in the last and the first to jump
example:
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_clcmd( "amx_menu","Menu_jump")
}
public Menu_jump(id)
{
new menu = menu_create("Jump Menu:", "Menu_jump_handler")
menu_additem(menu, "First Jump", "1", 0)
menu_additem(menu, "Last Jump", "2", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
public Menu_jump_handler(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data)
switch(key)
{
case 1:
{
client_print(id, print_chat, "First Jump")
Menu_jump(id)
//...
}
case 2:
{
client_print(id, print_chat, "Last Jump")
Menu_jump(id)
//...
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
I would add a Glow in the last player to jump
thank you
__________________