Raised This Month: $ Target: $400
 0% 

Help me to add some functions :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bledis
Junior Member
Join Date: Feb 2007
Old 02-23-2007 , 11:57   Help me to add some functions :(
Reply With Quote #1

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 is offline
Old 02-23-2007, 12:04
Voi
This message has been deleted by BAILOPAN. Reason: irrelevant
gzus
Member
Join Date: Jan 2007
Old 02-23-2007 , 12:09   Re: Help me to add some functions :(
Reply With Quote #3

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.
__________________
71.200.20.142:27017 - testing mho mod
if you need any files visit clan.mosthatedonline.com
gzus is offline
bledis
Junior Member
Join Date: Feb 2007
Old 02-23-2007 , 12:06   Re: Help me to add some functions :(
Reply With Quote #4

Please dont comment what i dont ask, im just asking for a help...
bledis is offline
bledis
Junior Member
Join Date: Feb 2007
Old 02-23-2007 , 12:13   Re: Help me to add some functions :(
Reply With Quote #5

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.
bledis is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-23-2007 , 12:14   Re: Help me to add some functions :(
Reply With Quote #6

I have END binded to a buy awp command
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
bledis
Junior Member
Join Date: Feb 2007
Old 02-23-2007 , 12:24   Re: Help me to add some functions :(
Reply With Quote #7

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 :/
bledis is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-23-2007 , 13:29   Re: Help me to add some functions :(
Reply With Quote #8

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




SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Davidos
Senior Member
Join Date: Feb 2005
Old 02-23-2007 , 13:37   Re: Help me to add some functions :(
Reply With Quote #9

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 ...
__________________
Roar.
Davidos is offline
bledis
Junior Member
Join Date: Feb 2007
Old 02-24-2007 , 08:06   Re: Help me to add some functions :(
Reply With Quote #10

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
bledis 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 00:37.


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