A bug found??
register_event("ShowMenu", "set_player_team", "b", "Team_Select") <--- Catches every ShowMenu-event - weird? Yeah, I know... It catches the BuyMenu and so on...
Anyone knows why? |
try this:
Code:
|
because those are menus :/ u are registering an event for every single player
|
Quote:
|
Quote:
|
are u sure its called Team_Select?
try printing all args for ShowMenu event when u r in team menu |
The fourth through infinitive parameters for register_event are conditions. "Team_Select" isn't a condition. Here are some examples of how to use it, from amxmodx.inc:
* Examples for conditions: * "2=c4" - 2nd parameter of message must be sting "c4". * "3>10" - 3rd parameter must be greater then 10. * "3!4" - 3rd must be different from 4. * "2&Buy" - 2nd parameter of message must contain "Buy" substring. * "2!Buy" - 2nd parameter of message can't contain "Buy" substring. */ |
| All times are GMT -4. The time now is 14:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.