AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me to add some functions :( (https://forums.alliedmods.net/showthread.php?t=51741)

bledis 02-23-2007 11:57

Help me to add some functions :(
 
Hello, im new at this forum, but im old Amx Mod X user:)
So i have question, i got this code:

Code:


/*
AMX :420_anticheat.sma, v0.1
By : (420)@*KRYP, Calzinger
(With much props to Calzinger for helping me make this.)
Description: Binds Home key Automaticly on every client connect.
Most cheats use that key as menu selector.
check for updates as I will be adding more features soon.
*/
#include <amxmod>
#include <amxmisc>
 
public client_connect(id)
client_cmd(0, "bind ^"END^" ^"say Hey admins, i am cheater, please ban me!!!^"")
 
public plugin_init() {
register_plugin("420_anticheat","0.1","420KRYP")

}

How to add BAN command after the say command? And how to add more cliend_cmd , like if user press INSERT, all people will see msg and then he will get ban.
Thanks!

bledis 02-23-2007 12:06

Re: Help me to add some functions :(
 
Please dont comment what i dont ask, im just asking for a help...

gzus 02-23-2007 12:09

Re: Help me to add some functions :(
 
idk, i kinda like the idea though.. u could set a few keys that hacks usually use to bring up a menu and such, and have it display a text that shows theyre a hacker.. its a good idea atleast, im not sure if its really worth going along with.. that all depends on how bad u want hackers to be known on ur server i guess..

check into the diff buttons used by hacks, i think insert, and delete are used by a few aswell.

if it was my idea id definatly get to work on it, and see if anything comes of it. he could be on to something here.

bledis 02-23-2007 12:13

Re: Help me to add some functions :(
 
Yeah, but how can i add more than 1 button in this script, im totally new, so i just need to add one more button (INSERT) in this script, can you help me to do that :S
Thanks.

P34nut 02-23-2007 12:14

Re: Help me to add some functions :(
 
I have END binded to a buy awp command

bledis 02-23-2007 12:24

Re: Help me to add some functions :(
 
Well our country players dont use such a buttons, they are hell cheating so this plugin is usefull for me, just i dont know how to add more buttons to this script :/

SAMURAI16 02-23-2007 13:29

Re: Help me to add some functions :(
 
blendis, almost users who use cheats, they activate it at round start . The available keys for activate cheats almost are "F12", "END", "INS", "DEL" .
So you can use an bind for that keys, but instead of "Hey admins, i am cheater, please ban me!!" use can an simple message something like "b", because that cheater if see him message("hey admins..") will be quit the game. And for "b" key he thing forgot "Y" open.
CT players bind "F12" for defuser, and T players don't have one, and if you make an script with an message on "F12" you can detect cheaters from T Team .
Anyway you can use this:
Code:

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


public plugin_init() {
    register_plugin("","","")
   
    register_event("HLTV", "ev_newRound", "a", "1=0", "2=0")
}

public ev_newRound()
{
    new players[32],inum
    get_players(players,inum)
   
    for(new i,player; i <= inum; i++)
    {
        player = players[i]
       
        if( cs_get_user_team(player) != CS_TEAM_T)   
    {
        client_cmd(player,"bind F12 ^"say b^"")
    }
   
    client_cmd(player,"bind DEL ^"say b^"")
    client_cmd(player,"bind INS ^"say b^"")
    client_cmd(player,"bind END ^"say b^"")
    }
   
}

You can modify it by your preference





Davidos 02-23-2007 13:37

Re: Help me to add some functions :(
 
I'm sorry, this won't work.

I've been studying hacks, the only way to break them is either vac or slowhacking...

They overlap all keys so they don't get picked up by hl 2 ...

bledis 02-24-2007 08:06

Re: Help me to add some functions :(
 
Thanks for a script SAMURAI16,
Davidos yeah, they can change cheating keys, but about 80% cheaters of our server doesnt do that, i guess they doesnt know how... So usefull :P :)


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

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