is there a chooseteam event to catch?
Is there a chooseteam event to catch, and how would i go about catching it?
I need to catch which team they pick. ;) |
Code:
I pulled this from another plugin, but how do I use it?!...I've never worked with menus before and I'm not understanding. |
if you look at the function that those lines of code call, it should make sense. Basically you make a function that takes in the player's ID and the number of the key he pressed and do the appropriate action. the (1<<0) is just a way of representing a byte. What those register_menucmd things do is intercept when the player presses a number on the join menu.
|
I've tried using this, and I even tried doing server_print, etc...and the event doesn't fire!
Why isn't the event firing? -- I've switched back and forth between vgui menus and text menus and I can't get the event to fire... Code:
|
I think you can just register that as clcmd. Look at PTB.
|
| All times are GMT -4. The time now is 14:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.