Raised This Month: $ Target: $400
 0% 

[Req] Help with question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sade1999
Member
Join Date: Feb 2014
Old 03-20-2015 , 14:01   [Req] Help with question
Reply With Quote #1

Does is impossbile to disable with command some controls?

like disabled the jump control or cant click on e?

if it is, can someone help me with?
sade1999 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 03-21-2015 , 07:07   Re: [Req] Help with question
Reply With Quote #2

Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define VERSION "0.0.1"

public plugin_init()
{
    register_plugin("No-Jump", VERSION, "ConnorMcLeod")

    RegisterHam(Ham_Player_Jump, "player", "Player_Jump")
}

public Player_Jump(id)
{
    static iOldbuttons ; iOldbuttons = entity_get_int(id, EV_INT_oldbuttons)
    if( !(iOldbuttons & IN_JUMP) )
    {
        entity_set_int(id, EV_INT_oldbuttons, iOldbuttons | IN_JUMP)
        return HAM_HANDLED
    }
    return HAM_IGNORED
}
zmd94 is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 03-21-2015 , 08:14   Re: [Req] Help with question
Reply With Quote #3

How to block all commands on button "z" and "u" ?
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 03-21-2015 , 09:56   Re: [Req] Help with question
Reply With Quote #4

Quote:
How to block all commands on button "z" and "u" ?
Sorry, it is not possible.
zmd94 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-21-2015 , 10:00   Re: [Req] Help with question
Reply With Quote #5

Quote:
Originally Posted by BaD CopY View Post
How to block all commands on button "z" and "u" ?
What commands are stored in Z and U? Need to be more specific..

You can block some commands, U i guess = say_team, and Z = radio command?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 03-21-2015 , 10:08   Re: [Req] Help with question
Reply With Quote #6

Z = normal chat ; T = team_say I want to unbind 'z' and 't' only in my server. When player disconnect, player's z and t buttons works fine (chat)
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-21-2015 , 11:05   Re: [Req] Help with question
Reply With Quote #7

So is say_team and say commands?

Because default keys are Y = say and U = say_team

I did not understand correctly.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 03-21-2015 at 11:06.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:35.


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