Shift Button pressed ?
How can i know if a player is pressing L SHIFT button ?
|
Re: Shift Button pressed ?
Quote:
if(get_user_button(index) & IN_RUN) |
Re: Shift Button pressed ?
Quote:
There was a thread about this a month ago, or so. Search |
Re: Shift Button pressed ?
The most important thing to understand is that you cannot know what keyboard keys are being pressed. You can only see what commands are being sent to the server. Not every body uses the same keyboard layout.
|
Re: Shift Button pressed ?
Quote:
|
Re: Shift Button pressed ?
PHP Code:
|
Re: Shift Button pressed ?
Quote:
|
Re: Shift Button pressed ?
Quote:
PHP Code:
|
Re: Shift Button pressed ?
Quote:
|
Re: Shift Button pressed ?
Quote:
first of all, controllers are a thing (not sure who does that on 1.6 ,but I tried to and you can "shift" even without using +speed because of the analog input), also when you land/jump it's gonna trigger it, or hit an object/wall while running your speed is gonna shift to lower amounts or 0. there's also +moveup that does influence move speed even if you do not hold shift (+speed) fps too high or too low is gonna trigger that (jumping/landing with 150+ fps, falling off ledges with less than 40 fps etc for example if u had less than 20 and u land somewhere you will most likely never even trigger this cuz you don't lose that much speed lol) Getting non-fatal hits on you(especially with awp) will also trigger that most likely. I guess you could "hack" around it, and code a command that lets players bind it on their shift button, let's say +ability and set their ent speed. But you can also probably just register clcmd +speed (I GUESS? not sure, don't know the amxx sdk that well). Refer to : https://forums.alliedmods.net/showpo...05&postcount=5 |
| All times are GMT -4. The time now is 10:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.