This is the final version with menu, vote, + more commands
I cleaned up my code a lot but if anyone gets any bugs let me know and ill go and fix them
/* * * * * * * * * * * * * * *
* Amx Mod X
* Meta HookMod Admin Commands
*
* Plugin is used to change values of the meta hook mod.
*
*******************************************
* Created by: $uicid3 V1.4
*
* V1.0 - first creation. only had hook_on
* V1.1 - added a few more commands
* v1.2 - added password and speed
* v1.3 - updated hook_all to incorporate sky and ground separatly. Became hook_surface
* v1.4 - added more commands, a menu control, a vote with a cvar to allow/restrict voting
* and default variables for you to change
*
*
*
* This file is provided as is (no warranties).
*
* This file is free software and you can redistribute and/or modify it
* in any way you see fit. I take no responsibility for this file in any
* way. Use at your own risk. No warranties of any kind.
*
********************************************
*
* Commands:
* hook_on : <1|0> or <on|off>: Turn hook on/off
* hook_pass : Set password on hook: set to 0 to turn off
* hook_instant : <1|0> or <on|off>: Turn instant hooking on/off
* hook_surface : <0|1|2|3> : 0 for only walls: 1 for ground: 2 for sky: 3 for both
* hook_sound : <1|0> or <on|off>: Turn sound on/off
* hook_speed : Sets speed which you reel in (value greater than 0)
* hook_people : <1|0> or <on|off>: Turn hooking people on/off
* hook_delay : Sets time to wait before you can shoot another hook(value greater than 0)
* hook_color : <1|0> or <on|off>: Turn color on/off
* hook_size : sets size of hook(greater than 0)
* hook_menu : Opens main command menu
*
* Say /hookmenu :Opens main command menu
* Say hookmenu
*
*
* Cvars:
* hook_enablevote : <1|0> : 1 to allow voting: 0 to disable voting
*
*
*
********************************************* ********/