AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make player press TAB (https://forums.alliedmods.net/showthread.php?t=155575)

Flipper_SPb 04-24-2011 03:07

How to make player press TAB
 
I need to show the scoreboard to player.
Is that possible without client_cmd(id, "+showscores") / client_cmd(id, "-showscores") ?

ConnorMcLeod 04-24-2011 04:27

Re: How to make player press TAB
 
I bet IN_SCORE is proceeded clientside.
Try to force IN_SCORE in CmdButtons each CmdStart then you will see if you have other options than +showscore.

Flipper_SPb 04-24-2011 06:34

Re: How to make player press TAB
 
Can you give an example? I don't know exactly how to do that.
I tried, but I can't force even IN_ATTACK.

ConnorMcLeod 04-24-2011 06:51

Re: How to make player press TAB
 
hook FM_CmdStart, retrieve UC_Buttons value, enforce IN_SCORE in the value and set UC_Buttons value, return FMRES_HANDLED.


All times are GMT -4. The time now is 19:55.

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