Forum

> > CS2D > Scripts > How can I change the serveraction button to F2?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How can I change the serveraction button to F2?

8 replies
To the start Previous 1 Next To the start

old NinjA

badx kissed
BANNED Off Offline

Quote
Pls Help me
edited 1×, last 06.06.18 10:45:11 pm

old Re: How can I change the serveraction button to F2?

GeoB99
Moderator Off Offline

Quote
"Hc Admin" is a horribly bad and generic title. Please, consider using a proper one for your thread before posting.

Also, "not working" is a meaningless statement giving us no insight whatsoever. The odds that receiving help by behaving this way are slim. You may want to read thread cs2d How to ask for help. if you want people to help you faster.

In order to change the server action key from F4 to F2 you must check the specific line of code where it does a conditional check when the player presses the specific key. Something like this:
1
if (action == 3) then
Note that
action
parameter can have different names. As per the cs2d lua hook serveraction documentation 3 is reserved for F4, while 2 is for F3 and 1 for F2. In your case, just change the value to 1.

old NinjA

maninja
User Off Offline

Quote
@user GeoB99: Thanks for the advice, friend I had done it but did not work at Action 1 Do I have to go to hc.confg ?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview