AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to give button action without slowhack? (https://forums.alliedmods.net/showthread.php?t=185484)

Randomize 05-18-2012 06:22

How to give button action without slowhack?
 
PHP Code:

/* Plugin generated by AMXX-Studio */
// Special thanks to ExG for CFG script

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "180 Degrees Rotation"
#define VERSION "1.0"
#define AUTHOR "DavidJr"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
server_cmd("bind f +fastturn")
    
register_concmd("+fastturn","fastturn")
    
register_concmd("-fastturn","fastturn")
}
public 
fastturn(id)
{
    
console_cmd(id"fps_max 100")
    
console_cmd(id"cl_yawspeed 5400")
    
console_cmd(id"wait")
    
console_cmd(id"+right")
    
console_cmd(id"wait")
    
console_cmd(id"-right")
    
console_cmd(id"fps_max 20")
    
console_cmd(id"cl_yawspeed 32")


How to configure it to config.cfg? I want press "F" button to activate the action without slowhack

<VeCo> 05-18-2012 06:23

Re: How to give button action without slowhack?
 
You can't bind it without user's permission.

Randomize 05-18-2012 06:25

Re: How to give button action without slowhack?
 
how to do the user's permission?

ConnorMcLeod 05-18-2012 06:26

Re: How to give button action without slowhack?
 
You can make players turn without executing anythink in their console.
Just alter their angles or v_angle.

Randomize 05-18-2012 06:48

Re: How to give button action without slowhack?
 
Use angle much perfect than using console command, but i don't know about angle

Randomize 05-18-2012 07:07

Re: How to give button action without slowhack?
 
server_cmd("bind f fastturn")
Is that slowhack?

Hyper Nova 05-18-2012 07:48

Re: How to give button action without slowhack?
 
Quote:

Originally Posted by Randomize (Post 1711249)
server_cmd("bind f fastturn")
Is that slowhack?

yes , but it only work on non-steam cs1.6
Steam cs1.6 block those slowhack commands.

hornet 05-18-2012 07:59

Re: How to give button action without slowhack?
 
Quote:

Originally Posted by Hyper Nova (Post 1711268)
yes , but it only work on non-steam cs1.6
Steam cs1.6 block those slowhack commands.

No it doesn't.


Quote:

Originally Posted by Randomize (Post 1711241)
Use angle much perfect than using console command, but i don't know about angle

Use Engine module.

PHP Code:

entity_get_vectoriEntEV_VEC_anglesFloat:Angles )
entity_set_vectoriEntEV_VEC_anglesFloat:Angles 


Randomize 05-18-2012 08:01

Re: How to give button action without slowhack?
 
Quote:

Originally Posted by hornet (Post 1711275)
No it doesn't.

CS 1.6 Steam doesn't block slow hack?


Use Engine module.

PHP Code:

entity_get_vectoriEntEV_VEC_anglesFloat:Angles )
entity_set_vectoriEntEV_VEC_anglesFloat:Angles 


I need full code

Hyper Nova 05-18-2012 08:01

Re: How to give button action without slowhack?
 
Quote:

Originally Posted by hornet (Post 1711275)
No it doesn't.

Are you sure about this?

I tested it a long time ago, bind things and motd_write do not work for steam players.
So i am pretty sure it does :)

Oh yeah, i forgot one thing

if you set angles
PHP Code:

entity_get_vectoriEntEV_VEC_anglesFloat:Angles 
entity_set_vectoriEntEV_VEC_anglesFloat:Angles 

then you need to update angle too
entity_set_vector( iEnt, EV_INT_fixangle, 1 )

ohter ways it dont do anything
this here:
PHP Code:

entity_set_vectoriEntEV_VEC_anglesFloat:Angles 



All times are GMT -4. The time now is 00:22.

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