Raised This Month: $51 Target: $400
 12% 

[ANY] Wallhack For Specs


Post New Thread Reply   
 
Thread Tools Display Modes
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-09-2014 , 02:39   Re: [ANY] Aimbot And Wallhack
Reply With Quote #11

Leonardo is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-09-2014 , 03:11   Re: [ANY] Aimbot And Wallhack
Reply With Quote #12

Quote:
Originally Posted by Mirandor View Post
You 'd better modify and rename it : remove the aimbot feature and make the wallhack feature only available in spectator mode (to admins only).
There was a plugin doing this before but it doesn't work anymore
Done
arthurdead is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 01-09-2014 , 03:29   Re: [ANY] Wallhack For Specs
Reply With Quote #13

Your plugin was fine with the aimbot included. You will also not get banned for posting one being as there are various aimbot plugins posted on the forum which do work.

Last edited by Sreaper; 01-09-2014 at 03:34.
Sreaper is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 01-09-2014 , 03:33   Re: [ANY] Wallhack For Specs
Reply With Quote #14

Quote:
Originally Posted by Sreaper View Post
Your plugin was fine with the aimbot included. You will also not get banned for posting one being as there are various aimbot plugins posted on the forum which do work.
That + the code could be useful to others who need it.
Drixevel is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 01-09-2014 , 05:09   Re: [ANY] Wallhack For Specs
Reply With Quote #15

Here
Attached Files
File Type: sp Get Plugin or Get Source (aimbot.sp - 696 views - 4.0 KB)
__________________
napalm00 is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 01-09-2014 , 11:49   Re: [ANY] Aimbot And Wallhack
Reply With Quote #16

Quote:
Originally Posted by arthurdead View Post
Done
Great!

Minor bug fix/optimization you could perform:

- you can use RegAdminCmd instead of RegConsoleCmd in public OnPluginStart()

PHP Code:
RegAdminCmd("sm_wallhack"Command_WallhackADMFLAG_ROOT); 
So you can remove the first line in Command_Wallhack

PHP Code:
if(CheckCommandAccess(client"sm_wallhack_access"ADMFLAG_ROOT)) 
- you may add a return Plugin_Handled at the end of Command_Wallhack, to avoid the "unknown command" message in the console of the player.

PHP Code:
public Action:Command_Wallhack(clientargs)
{
    if(
GetClientTeam(client) == 1)
    {
        if(
Walling[client] == false)
        {
            
Walling[client] = true;
            
PrintToChat(client"Wallhack Enabled")
        }
        else if(
Walling[client] == true)
        {
            
Walling[client] = false;
            
PrintToChat(client"Wallhack Disabled")
        }
    }
    else 
ReplyToCommand(client"[SM] You Must Be Espectator to Use This Command");
    
    return 
Plugin_Handled;

- GetClientTeam in Client_GetClosest does not work as the admin will see all of players, regardless of their team ; BTW you can use Client_GetObserverTarget from <smlib> include. So the admin will only see the enemies of the player he is looking through...
GetMaxClients() is not needed anymore, you can simply use MaxClients in your loop.

So the function should become:
PHP Code:
stock Client_GetClosest(Float:vecOrigin_center[3], const client)
{    


    
decl Float:vecOrigin_edict[3];
    new 
Float:distance = -1.0;
    new 
closestEdict = -1;
    new 
String:Tex[PLATFORM_MAX_PATH];
    
GetConVarString(cv_walltexTexPLATFORM_MAX_PATH)
    new 
mdl PrecacheModel(Tex);
    new 
target Client_GetObserverTarget(client);


    for (new 
1MaxClients; ++i)
    {

        if (!
IsClientInGame(i) || !IsPlayerAlive(i) || (== client))
            continue;

        
GetEntPropVector(iProp_Data"m_vecOrigin"vecOrigin_edict);
        
GetClientEyePosition(ivecOrigin_edict);
        if(
GetClientTeam(i) != GetClientTeam(target))
        {
            
TE_SetupGlowSprite(vecOrigin_edictmdl0.11.0255);
            
TE_SendToClient(client);

            if(
IsPointVisible(vecOrigin_centervecOrigin_edict))
            {
                new 
Float:edict_distance GetVectorDistance(vecOrigin_centervecOrigin_edict);
                if((
edict_distance distance) || (distance == -1.0))
                {
                    
distance edict_distance;
                    
closestEdict i;
                }
            }
        }
    }
    return 
closestEdict;

Mirandor is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-09-2014 , 12:23   Re: [ANY] Aimbot And Wallhack
Reply With Quote #17

Quote:
Originally Posted by Mirandor View Post
Great!

Minor bug fix/optimization you could perform:

- you can use RegAdminCmd instead of RegConsoleCmd in public OnPluginStart()

PHP Code:
RegAdminCmd("sm_wallhack"Command_WallhackADMFLAG_ROOT); 
So you can remove the first line in Command_Wallhack

PHP Code:
if(CheckCommandAccess(client"sm_wallhack_access"ADMFLAG_ROOT)) 
- you may add a return Plugin_Handled at the end of Command_Wallhack, to avoid the "unknown command" message in the console of the player.

PHP Code:
public Action:Command_Wallhack(clientargs)
{
    if(
GetClientTeam(client) == 1)
    {
        if(
Walling[client] == false)
        {
            
Walling[client] = true;
            
PrintToChat(client"Wallhack Enabled")
        }
        else if(
Walling[client] == true)
        {
            
Walling[client] = false;
            
PrintToChat(client"Wallhack Disabled")
        }
    }
    else 
ReplyToCommand(client"[SM] You Must Be Espectator to Use This Command");
    
    return 
Plugin_Handled;

- GetClientTeam in Client_GetClosest does not work as the admin will see all of players, regardless of their team ; BTW you can use Client_GetObserverTarget from <smlib> include. So the admin will only see the enemies of the player he is looking through...
GetMaxClients() is not needed anymore, you can simply use MaxClients in your loop.

So the function should become:
PHP Code:
stock Client_GetClosest(Float:vecOrigin_center[3], const client)
{    


    
decl Float:vecOrigin_edict[3];
    new 
Float:distance = -1.0;
    new 
closestEdict = -1;
    new 
String:Tex[PLATFORM_MAX_PATH];
    
GetConVarString(cv_walltexTexPLATFORM_MAX_PATH)
    new 
mdl PrecacheModel(Tex);
    new 
target Client_GetObserverTarget(client);


    for (new 
1MaxClients; ++i)
    {

        if (!
IsClientInGame(i) || !IsPlayerAlive(i) || (== client))
            continue;

        
GetEntPropVector(iProp_Data"m_vecOrigin"vecOrigin_edict);
        
GetClientEyePosition(ivecOrigin_edict);
        if(
GetClientTeam(i) != GetClientTeam(target))
        {
            
TE_SetupGlowSprite(vecOrigin_edictmdl0.11.0255);
            
TE_SendToClient(client);

            if(
IsPointVisible(vecOrigin_centervecOrigin_edict))
            {
                new 
Float:edict_distance GetVectorDistance(vecOrigin_centervecOrigin_edict);
                if((
edict_distance distance) || (distance == -1.0))
                {
                    
distance edict_distance;
                    
closestEdict i;
                }
            }
        }
    }
    return 
closestEdict;

Done
arthurdead is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 01-09-2014 , 12:39   Re: [ANY] Wallhack For Specs
Reply With Quote #18

Please stop reporting this plugin. While it is a highly jerky thing to do to players, it is not against any rules (although your server may be reported as abusive if you use this).
__________________

Last edited by Dr. McKay; 01-09-2014 at 12:40.
Dr. McKay is offline
m22b
Senior Member
Join Date: Jul 2013
Old 01-23-2014 , 18:46   Re: [ANY] Wallhack For Specs
Reply With Quote #19

csgo not work
author = noob
xD
m22b is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-23-2014 , 19:45   Re: [ANY] Aimbot And Wallhack
Reply With Quote #20

Quote:
Originally Posted by Black-Rabbit View Post
You cannot get vac ban for server side cheats and yes indeed it a fun but bad idea.
A server-side aimbot would be detected by SMAC

Quote:
Originally Posted by m22b View Post
csgo not work
author = noob
xD
maybe you have to use another wallhack texture
__________________

Last edited by zipcore; 01-23-2014 at 19:46.
zipcore 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 13:31.


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