Quote:
Originally Posted by Uzviseni Bog
What do you actually want? Do you want a hook that will be bound with the command 'bind c +fly' instead of 'bind c +hook', and to be given to certain players through a command?
|
If you've tried this code, you can see that the player can fly. I want it to work like a hook plugin, meaning it should activate with a command like +fly when the 'c' key is pressed, and the code should stop running when the 'c' key is released. In essence, I want it to function as a hook plugin with +fly and -fly commands.
Additionally, I want to be able to give and take this flying ability permanently to/from a player using the amx_givefly and amx_takefly commands. Even if the player logs out and logs back in, they should still have this ability, as it is stored as a permanent feature for that specific player.
sample hook plugin
https://forums.alliedmods.net/showthread.php?t=52304