PHP Code:
new g_hMenuChoose;
new g_hMenuAccept;
new g_hVault;
new g_Setting[33];
new bool:g_bFirstJump[33];
new bool:g_bPlayerAccepted[33];
new bool:g_bCommandRanOnce[33];
// I realize this isn't the best method, but whatever
new const g_szFORCESTRINGS[][] =
{
"",
";bind mwheelup +jump",
";bind mwheeldown +duck",
";bind mwheelup +jump;bind mwheeldown +duck",
";bind mwheelup ;bind mwheeldown ",
}
new const g_szFORCESTRINGS[][] =
{
"",
";bind mwheelup +duck",
";bind mwheeldown +duck",
";bind mwheelup ;bind mwheeldown ",
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar(AUTHOR, PLUGIN, FCVAR_SERVER, 0.0);
g_hMenuChoose = menu_create("[KZ] Qual bind você usa para Pular/Bunar", "mnuChoose", 0);
menu_additem(g_hMenuChoose, "mwheelup", "1", 0, -1);
menu_additem(g_hMenuChoose, "mwheeldown", "2", 0, -1);
menu_additem(g_hMenuChoose, "Ambas", "3", 0, -1);
menu_additem(g_hMenuChoose, "Nenhuma", "4", 0, -1);
g_hMenuChoose = menu_create("[KZ] Qual bind você usa para Agachar", "mnuChoose", 0)
menu_additem(g_hMenuChoose, "mwheelup", "1", 0, -1);
menu_additem(g_hMenuChoose, "mwheeldown", "2", 0, -1);
menu_additem(g_hMenuChoose, "Nenhuma", "3", 0, -1);
menu_setprop(g_hMenuChoose, MPROP_EXIT, MEXIT_NEVER);
g_hMenuAccept = menu_create("Your keys will be auto-bound to prevent jump wait. Do you accept?", "mnuAccept", 0);
menu_additem(g_hMenuAccept, "Sim (To change these settings at any time, type /mwheel)", "1", 0, -1);
menu_additem(g_hMenuAccept, "Não (You will be kicked)", "2", 0, -1);
menu_setprop(g_hMenuAccept, MPROP_EXIT, MEXIT_NEVER);