AlliedModders

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

NoLimit 04-28-2012 11:43

radio
 
How to delete radio? I mean when you push z x c and etc. :)

<VeCo> 04-28-2012 11:46

Re: radio
 
Hook radio1, radio2 and radio3 commands and block them with PLUGIN_HANDLED.

NoLimit 04-28-2012 11:47

Re: radio
 
Och. :)

Bilal Pro 04-28-2012 12:02

Re: radio
 
How would i hook the buy menu when u press B?

NoLimit 04-28-2012 12:07

Re: radio
 
Quote:

Originally Posted by <VeCo> (Post 1698106)
Hook radio1, radio2 and radio3 commands and block them with PLUGIN_HANDLED.

When i do not working...
PHP Code:


new radio_menus[][] = { "radio1""radio2""radio3" }

public 
plugin_init() {
    for(new 
0sizeof(radio_menus); i++)
        
register_clcmd(radio_menus[i], "clcmd_radio")
}
public 
clcmd_radio() {
     return 
PLUGIN_HANDLED



NoLimit 04-28-2012 13:38

Re: radio
 
So how to do to work it?

Bilal Pro 04-28-2012 15:17

Re: radio
 
Dont bump untill 2 weeks passed since the last post.

<VeCo> 04-28-2012 15:27

Re: radio
 
Quote:

Originally Posted by NoLimit (Post 1698194)
So how to do to work it?

Hm... It works for me. :|

NoLimit 04-28-2012 15:30

Re: radio
 
Can you show your code?

<VeCo> 04-28-2012 15:32

Re: radio
 
I tested your code.


All times are GMT -4. The time now is 07:41.

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