AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Button press (https://forums.alliedmods.net/showthread.php?t=170269)

zakt4n 10-22-2011 13:18

Button press
 
How can i get if the player is pressing a button (that have a bind)?

Thanks!!!

BoBzY 10-22-2011 13:27

Re: Button press
 
http://docs.sourcemod.net/api/index....d=show&id=864&

Work with sm 1.4 ;)

zakt4n 10-22-2011 13:47

Re: Button press
 
but can i execute a command during the press of player?

like make player in noclip while he is pressing the button

Thanks!!!

BoBzY 10-22-2011 13:51

Re: Button press
 
Use the callback

Monkeys 10-22-2011 14:16

Re: Button press
 
My guess is he's asking how to find out when a player presses a KEY. An actual button, not an ingame entity.

You can't find out if a player presses "Y" or "Up Arrow" or sortlike, but you can find out if he issued a command like "+forward", which are commonly bound to certain keys.

fs_wtong 10-23-2011 04:20

Re: Button press
 
Use Old buttons this way!

zakt4n 10-24-2011 15:02

Re: Button press
 
i'm looking for a code that i can do something WHILE the player is pressing the binded button (example: button p is binded to use the command "+hi"), so i want to do something during the press action

thanks


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

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