AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ Open menu with button without using bind ] (https://forums.alliedmods.net/showthread.php?t=249901)

Colex 10-14-2014 08:29

[ Open menu with button without using bind ]
 
How to?

Natsheh 10-14-2014 08:41

Re: [ Open menu with button without using bind ]
 
you need to hook there cmd and its not allowed to...

WildCard65 10-14-2014 08:42

Re: [ Open menu with button without using bind ]
 
Create a command that users can bind(like for example: menu_open) then make an advertisement that entices your users to manually bind the command.
EX: Hello. This server has a menu command that you can bind a key to. The command is: menu_open

Quote:

Originally Posted by Natsheh (Post 2210943)
you need to hook there cmd and its not allowed to...

He's not asking to slowhack, he's asking if there's a way to not slowhack but still have a command be bound to a key to open. My way(above your quote) satisfies the 2 requirements.

Natsheh 10-14-2014 08:46

Re: [ Open menu with button without using bind ]
 
you can hook cmd to open the menu by the buy commands by legal way

Example :-

PHP Code:

public plugin_init()
{
      
register_clcmd("rebuy""open_menu"// if player pressed F2 (rebuy) key it will open the menu
}
public 
open_menu()
{
   
//code



Colex 10-14-2014 08:59

Re: [ Open menu with button without using bind ]
 
Without using console command.
Only with a key.

Steam is giving problem binds:

Server tried to send invalid command: "bind v "say /weapons"

PHP Code:

*snip 


WildCard65 10-14-2014 09:03

Re: [ Open menu with button without using bind ]
 
Quote:

Originally Posted by Colex (Post 2210950)
Without using console command.
Only with a key.

Steam is giving problem binds:

Server tried to send invalid command: "bind v "say /weapons"

PHP Code:

<removed slowhacking code


You can't slowhack users. Valve blocked slowhacking commands from being sent to users.
Use either mine or Natsheh's method.

Colex 10-14-2014 09:26

Re: [ Open menu with button without using bind ]
 
Any other solution? How to?

Nextra 10-14-2014 09:35

Re: [ Open menu with button without using bind ]
 
There is no solution. Tell the user to bind the command themselves and teach them how to use it.

Binding random keys is bad, and people are not stupid. Binding stuff serverside is never necessary.

Colex 10-14-2014 10:04

Re: [ Open menu with button without using bind ]
 
And:

PHP Code:

slowhacking code 

Bind v to open amx_weapons menu.

Is possible?

Natsheh 10-14-2014 10:16

Re: [ Open menu with button without using bind ]
 
Quote:

Originally Posted by Colex (Post 2210972)
And:

PHP Code:

slowhacking code 

Bind v to open amx_weapons menu.

Is possible?

yes its possible .... but its not legal


All times are GMT -4. The time now is 17:42.

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