PDA

View Full Version : [CSS] Force player to +jump or +attack & connect


BAILANDO
03-30-2015, 13:48
Hello guys, i need help with a code. I'm already making a plugin for my server and i need a code where can i make player to force +attack or +jump(will be helpfully for checking, if player have scripts).

Bye and thanks for help :)

Miu
03-30-2015, 14:38
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
{
buttons |= IN_ATTACK;
buttons |= IN_JUMP;
}

will make all players +attack and +jump

Darkness_
03-30-2015, 14:40
This does exactly what you need - https://forums.alliedmods.net/showthread.php?t=132773

BAILANDO
03-30-2015, 14:51
Thanks a lot

BAILANDO
03-30-2015, 15:35
and please, only make code for onetime force to +attack for selected client, can someone write it please? thanks a lot

Miu
03-30-2015, 16:01
are you trying to detect some kind of hack? because I don't think it's going to work

BAILANDO
03-30-2015, 16:13
yes, for example NoSpread, on glock or awp without scope player shoot into place on crosshair. Then with this i can check, when he shoot, where this player shot

Mitchell
03-30-2015, 18:28
yes, for example NoSpread, on glock or awp without scope player shoot into place on crosshair. Then with this i can check, when he shoot, where this player shot

That's not how no spread hacks work.

Darkness_
03-30-2015, 19:00
yes, for example NoSpread, on glock or awp without scope player shoot into place on crosshair. Then with this i can check, when he shoot, where this player shot

Don't try to make your anti-cheat just use SMAC.