AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Register menu command troubles... (https://forums.alliedmods.net/showthread.php?t=2706)

ThantiK 06-14-2004 04:07

Register menu command troubles...
 
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> public plugin_init() {    register_plugin("Convert","0.1","ThantiK")    register_cvar("amx_convert","1")    register_event("DeathMsg","convert_meh_master","a")    register_menucmd(register_menuid("Team_Select"),(1<<0)|(1<<1),"team_select")    register_menucmd(-2,(1<<0)|(1<<1),"team_select")   // VGUI menu } public team_select(id, key){        server_print("team_select: %s, %f, %i, %d ", key, key, key, key)        return PLUGIN_CONTINUE }

What is wrong with those register menucmds?!...neither events fire the team_select function! (For CS1.6)


All times are GMT -4. The time now is 14:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.