Raised This Month: $114 Target: $400
 28% 

"Hacks" Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-04-2007 , 22:08   "Hacks" Plugin
Reply With Quote #1

  • Allows all clients in server to enable whichever hacks they want on themselves. While a hack is active on them, they will glow red if on T and blue if on CT.

Commands:
  • say /aimbot
  • say /esp
  • say /speed
  • say /norecoil

CVARs:
  • aimbot_on
    • 1=on 0=off (Default: 1)
  • esp_on
    • 1=on 0=off (Default: 1)
  • speed_on
    • 1=on 0=off (Default: 1)
  • recoil_on
    • 1=on 0=off (Default: 1)
  • speedhack_speed
    • Speed of Speedhack (Default: 500.0)


Note: Not changing the plugin to be admin only, so do not even ask.
Note: ESP gives possibility to take up all of the hud channels disallowing other plugins to show HUD messages.
Note: Hacks will not work as good as a client-side hack would work because of lag and HL's interp. There is nothing I can do about this.

Requires CHR_Engine Stocks. (So download .amxx file instead of using the "Get Plugin" link.)
_
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Hacks.sma - 7237 views - 7.9 KB)
File Type: amxx GHW_Hacks.amxx (17.0 KB, 2938 views)

Last edited by GHW_Chronic; 07-13-2009 at 03:52.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 01-04-2007 , 22:15   Re: "Hacks" Plugin
Reply With Quote #2

Sexy.
im trying it now.
+Karma.

I like it.
  • Is it possible to change the settings of the speed your going when you use /speed ?
  • possible to change when you press use key that when you press backwards it allows you to go backwards?
Everything elso so far is good.
__________________
i stop around here and there.

Last edited by Da_sk8rboy; 05-06-2007 at 22:46.
Da_sk8rboy is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-04-2007 , 22:39   Re: "Hacks" Plugin
Reply With Quote #3

I fixed a couple things since your post. If you keep the plugin on your server you should download the latest one.

Last edited by GHW_Chronic; 01-04-2007 at 22:40. Reason: typo
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 01-04-2007 , 22:40   Re: "Hacks" Plugin
Reply With Quote #4

Alright
__________________
i stop around here and there.
Da_sk8rboy is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-04-2007 , 22:45   Re: "Hacks" Plugin
Reply With Quote #5

a. I don't believe adding backwards ability is necessary. Just turn your mouse.
b. there is a speed CVAR, I just didn't have it on the post :O
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Old 01-04-2007, 22:46
Da_sk8rboy
This message has been deleted by Da_sk8rboy. Reason: ;)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-04-2007 , 22:49   Re: "Hacks" Plugin
Reply With Quote #6

haha, now that u said that you are going to get 100 IMs a day from newbs asking for you to give them the edited admin only .sma
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-04-2007 , 23:13   Re: "Hacks" Plugin
Reply With Quote #7

Code:
public hack3(id) {     if(get_pcvar_num(speed_on_pcvar))     {         if(!esp[id])         {
Wrong variable?

EDIT:
I'd suggest condensing your if statements. For example, in FM_PreThink, instead of having an is_user_alive check at the top, and including the rest of your code in its braces, just check if they are NOT alive, and if so, return.

You can also turn things like this:
Code:
        if(esp[id])         {             if(get_pcvar_num(esp_on_pcvar))             {

Into this:
Code:
        if(esp[id] && get_pcvar_num(esp_on_pcvar))         {

It won't add any overhead from get_pcvar_num, because if esp[id] is false, the rest of the if statement isn't checked.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 01-04-2007 at 23:17.
XxAvalanchexX is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-04-2007 , 23:15   Re: "Hacks" Plugin
Reply With Quote #8

good catch, fixed.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-04-2007 , 23:36   Re: "Hacks" Plugin
Reply With Quote #9

Sounds sweet, will probably try soon.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-04-2007 , 23:37   Re: "Hacks" Plugin
Reply With Quote #10

Code:
        if(esp[id])         {             if(get_pcvar_num(esp_on_pcvar))             {                 //             }             else             {                 //             }         }
As you can see, it is either this or your way with 2 different redundant checks for esp[id]:
Code:
        if(esp[id] && get_pcvar_num(esp_on_pcvar))         {             //         else if(esp[id] && !get_pcvar_num(esp_on_pcvar))         {             //         }

And I simply added everything into the is_user_alive if statement because I figured checking for alive and not alive is the same amount efficient. Is it not? The effect is the exact same, if id is not alive the function ends, and in your way, if id is not alive, the function ends, however it also has to return something that won't be checked by anything.

Last edited by GHW_Chronic; 01-04-2007 at 23:41.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Reply


Thread Tools
Display Modes

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 17:37.


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