AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   About a button (https://forums.alliedmods.net/showthread.php?t=146636)

Jacob 12-30-2010 07:03

About a button
 
if(equali(arg, "lastinv")) -->button Q
if(equali(arg, " ? ")) --> button 2(change weapon to pistol)
thanks in advance.

drekes 12-30-2010 07:06

Re: About a button
 
lastinv is not only Q, it can be mwheelup or down or any other button a client binded to lastinv.
And the other one is slot2 i think.

When you want to know the command bound to a certain button, type "bind button" in console and it will show the current command bound to the button.

like
Code:

bind q
q = lastinv


Jacob 12-30-2010 07:49

Re: About a button
 
Quote:

Originally Posted by drekes (Post 1382302)
lastinv is not only Q, it can be mwheelup or down or any other button a client binded to lastinv.
And the other one is slot2 i think.

When you want to know the command bound to a certain button, type "bind button" in console and it will show the current command bound to the button.

like
Code:

bind q
q = lastinv


thank you!!!


All times are GMT -4. The time now is 02:12.

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