AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help, type in the value?? (https://forums.alliedmods.net/showthread.php?t=183572)

Bilal Pro 04-23-2012 10:43

Help, type in the value??
 
Hello there,

How can i make something like for example a cvar: i press on it and then left upside corner
there comes a message: amx_changecvar: ammount here

Ex1ne 04-23-2012 14:52

Re: Help, type in the value??
 
Hook amx_cvar -> read_args -> parse -> display...

fysiks 04-23-2012 20:26

Re: Help, type in the value??
 
Quote:

Originally Posted by Bilal Pro (Post 1695094)
Hello there,

How can i make something like for example a cvar: i press on it and then left upside corner
there comes a message: amx_changecvar: ammount here

You "press on it"???? I really hope you mean in a menu.

You need to register amx_changecvar normally such that it works in your console. Then, when you want them to type the value where you normally type chat then you would do this:

Code:

client_cmd(id, "messagemode amx_changecvar")

Quote:

Originally Posted by Ex1ne (Post 1695212)
Hook amx_cvar -> read_args -> parse -> display...

No.


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

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