AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Buy Weapon (https://forums.alliedmods.net/showthread.php?t=177402)

wwzw 02-01-2012 06:18

Buy Weapon
 
I use GHW weapon plugin . but it can't use for some player using VGUI menu .
So I test for VGUI menu .

register_menucmd(-28, 511, "hook_menu0")
register_menucmd(-29, 511, "hook_menu1")
register_menucmd(-30, 511, "hook_menu2")
register_menucmd(-32, 511, "hook_menu3")
register_menucmd(-31, 511, "hook_menu4")
register_menucmd(-33, 511, "hook_menu5")
register_menucmd(-34, 511, "hook_menu6")

These have no effect .
I continue to test:

register_message(get_user_msgid("VGUIMenu"), "message_vgui_menu")
public message_vgui_menu(msgid, dest, id)
{
static msgarg1
msgarg1 = get_msg_arg_int(1)

client_print(id, print_center, "TEST: vgui_menu <%d> ", msgarg1)
return PLUGIN_CONTINUE;
}

Results: Players join team menu is 2, players choose the model menu is 27. But open the purchase menu, and the purchase of various types of weapons will not work .

Why is this so? Client version is 4554 .

I think the command to manage arms purchases by the rules.
But I do not know all the commands can buy weapons .

Like "awp" and "magnum", both can buy awp .
"fn57" "fiveseven" : Effect is the same .

Who can tell me the server can accept all command for the purchase of weapons . Thanks !

yamin 02-01-2012 06:19

Re: Buy Weapon
 
give your facebook id please

wwzw 02-01-2012 06:35

Re: Buy Weapon
 
Sorry ! I have no facebook id .
My E-mail is [email protected]


All times are GMT -4. The time now is 00:21.

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