AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Request] Some help (https://forums.alliedmods.net/showthread.php?t=107207)

pirvu 10-24-2009 04:27

[Request] Some help
 
How can i control a player ?

I mean if i use a prethink or client_command it will work ?

for example i wanna control a player with my keyboard ...

So i'll have to see in amxx if i use +forward / + left ...etc

Any ideas?

RICHIERICH 10-24-2009 04:32

Re: [Request] Some help
 
it is slow hacking dont do

pirvu 10-24-2009 04:36

Re: [Request] Some help
 
oh yeah ... i forgot :(

i was thinking to check if some1 is cheating ... but you're right ...

RICHIERICH 10-24-2009 04:39

Re: [Request] Some help
 
Use hack detector of Exolent it is awesome plugin :D than players cant cheat :)

pirvu 10-24-2009 06:59

Re: [Request] Some help
 
Yeah but i want if for aimbot or wallhack ...

Xellath 10-24-2009 07:31

Re: [Request] Some help
 
Quote:

Originally Posted by pirvu (Post 970609)
Yeah but i want if for aimbot or wallhack ...

Aimbot Detection
Lucia Hallucination
Block Wallhack

Hawk552 10-24-2009 12:23

Re: [Request] Some help
 
You can use velocity setting. For example,

PHP Code:

#include <amxmodx>
#include <fakemeta>

// Uncomment to use the controlled player's direction.
#define VELOCITY_BY_CONTROLLER

// I think? Adjust this.
#define RUN_SPEED 320

new gControlled[33]

public 
plugin_init()
{
    
register_plugin"Controller Mod""1.0""Hawk552" )
    
    
register_clcmd"control""CmdControl" )
}

public 
CmdControlid )
{
    new 
args[33]
    
read_argv1args32 )
    
    
gControlled[id] = get_user_indexargs )
}

public 
client_PreThinkid )
{
    if ( !
is_user_alivegControlled[id] ) )
        return
    
    new 
button pevidpev_button )
    static 
Float:velocity[3], Float:origin[3], Float:angle[3]
    
#if defined VELOCITY_BY_CONTROLLER
    
pevidpev_originorigin )  
    
pevidpev_v_angleangle 
#else
    
pevgControlled[id], pev_originorigin )  
    
pevgControlled[id], pev_v_angleangle 
#endif 

    
if ( button IN_FORWARD )
    {
        
engfuncEngFunc_MakeVectorsangle 
        
global_getglb_v_forwardvelocity 
        
        
velocity[0] = origin[0] - RUN_SPEED velocity[0]
        
velocity[1] = origin[1] - RUN_SPEED velocity[1]
        
velocity[2] = origin[2] - RUN_SPEED velocity[2]
    }
        
    
// Add more cases for the buttons...
    
    
set_pevgControlled[id], pev_velocityvelocity )
}

public 
client_disconnectid )
    
gControlled[id] = 

You'll need way more checks and code.


All times are GMT -4. The time now is 17:43.

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