registering menus.. [ umm, solved! ]
im working on a plugin which allows admins to control.. other players
the code below works, but i was just wondering if its ok to register every menu like it does right now, or is there another way of catching the keypress? Code:
wont this register the same menus over and over again as they pop up on the target's screen? EDIT: oh, i forgot to explain what to code does exactly :P it just replicates the menu displayed to the controlled player to the one controlling him who can then decide what the player should "select" |
okay, i looked how its done in amxx source and came up with this (if anyone is interested..)
Code:
|
Well your bools are messed up. Make sure they are below the plugin_init() like this:
Code:
Then in your functions you need to change this: Code:
To: Code:
|
| All times are GMT -4. The time now is 08:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.