Raised This Month: $ Target: $400
 0% 

[EXTENSION] Dukehacks


Post New Thread Reply   
 
Thread Tools Display Modes
Tramp
Senior Member
Join Date: Aug 2005
Old 03-28-2009 , 10:32   Re: [EXTENSION] Dukehacks
Reply With Quote #141

Hi

I'm using dhRoundEnd() from 0.0.0.3 in SM 1.2 and this hack is not working very well in that sm version.

After few minutes my server is getting time out.
Without DH all is fine :/
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp is offline
Tramp
Senior Member
Join Date: Aug 2005
Old 04-02-2009 , 10:23   Re: [EXTENSION] Dukehacks
Reply With Quote #142

Quote:
Originally Posted by Tramp View Post
Hi

I'm using dhRoundEnd() from 0.0.0.3 in SM 1.2 and this hack is not working very well in that sm version.

After few minutes my server is getting time out.
Without DH all is fine :/
This plugin made problem:
http://forums.alliedmods.net/showthread.php?p=667851

It dosen't like dukehacks ;)

~resolved
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 04-15-2009 , 01:33   Re: [EXTENSION] Dukehacks
Reply With Quote #143

Quote:
Originally Posted by NeoDement View Post
Code:
public Action:ProcessUsercmdsHook(client, &buttons, &impulse) {
    //buttons &= ~IN_ATTACK;
    buttons &= IN_DUCK;
    return Plugin_Changed;
}
You want |= there. | is logical or, & is logical and.
Fyren is offline
NeoDement
Member
Join Date: Mar 2009
Old 04-15-2009 , 13:54   Re: [EXTENSION] Dukehacks
Reply With Quote #144

I tried
Code:
public Action:ProcessUsercmdsHook(client, &buttons, &impulse) {
    //buttons &= ~IN_ATTACK;
    buttons |= IN_DUCK;
    return Plugin_Changed;
}
But it didn't work, I think I misunderstood?
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 04-15-2009 , 17:32   Re: [EXTENSION] Dukehacks
Reply With Quote #145

buttons |= ~IN_DUCK;

maybe?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
NeoDement
Member
Join Date: Mar 2009
Old 04-15-2009 , 19:54   Re: [EXTENSION] Dukehacks
Reply With Quote #146

I got nothing
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-15-2009 , 22:55   Re: [EXTENSION] Dukehacks
Reply With Quote #147

&= should work.

You can always test by doing:
PHP Code:
if (buttons IN_DUCK)
{
    
PrintToChatAll("in duck");
}
else
{
    
PrintToChatAll("not in duck");

bl4nk is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 04-16-2009 , 03:27   Re: [EXTENSION] Dukehacks
Reply With Quote #148

He wants to remove IN_DUCK from buttons though
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-16-2009 , 04:04   Re: [EXTENSION] Dukehacks
Reply With Quote #149

I know; he can just use:
PHP Code:
buttons &= ~IN_DUCK
Which is basically what I said.
bl4nk is offline
NeoDement
Member
Join Date: Mar 2009
Old 04-16-2009 , 11:01   Re: [EXTENSION] Dukehacks
Reply With Quote #150

No no no he wants to ADD IN_DUCK to buttons
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
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 02:30.


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