Raised This Month: $ Target: $400
 0% 

Plugin Request : Check the setinfo...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alemanmp
New Member
Join Date: Sep 2006
Old 09-23-2006 , 21:10   Plugin Request : Check the setinfo...
Reply With Quote #1

Hi, im needing a plugin:
When the player connects it detects if Setinfo "koo" "kaa" if "koo" value is different than "kaa" the servers kicks the player, i need it for an anticheat.
Thanks
Cya

PD:If u dont understand ask in this thread, cause im argentinian and my english is not good...

Last edited by Alemanmp; 09-23-2006 at 21:14.
Alemanmp is offline
-W0kk3L-
Senior Member
Join Date: May 2004
Location: Netherlands
Old 09-24-2006 , 03:08   Re: Plugin Request : Check the setinfo...
Reply With Quote #2

You can't use this for anti-cheat, because any admin can set your setinfo messages. So any info set in setinfo would be unreliable.

There already was a plugin for that. But i advice you not to use it.

Code:
 #include <amxmodx>
 #include <amxmisc>

 public plugin_init(){
  register_plugin("Ecstatic Check","2.1","Anthrax")
 }
 public client_putinserver(id){
  new infoField[32]
  new infoField2[32]
  new infoField3[32]
  new infoField4[32]

  get_user_info(id,"EcstaticCheat",infoField,32)
  get_user_info(id,"TeKilla",infoField2,32)
  get_user_info(id,"MicCheat",infoField3,32)
  get_user_info(id,"AlphaCheat",infoField4,32)


 if((equal(infoField,"Hack_User"))||(equal(infoField2,"Hack_User"))||(equal(infoField3,"Hack_User"))||(equal(infoField4,"Hack_User"))){
    new name[32]
    new auth[32]

    get_user_name(id,name,31)
    get_user_authid(id,auth,31)

    if (equal(infoField,"Hack_User")){
      server_cmd("amx_ban %d %s %s",0,auth,"Ecstatic Cheat")
      log_amx("Player %s %s was Banned for Ecstatic Cheat",name,auth)
    }
    if (equal(infoField2,"Hack_User")) {
      server_cmd("amx_ban %d %s %s",0,auth,"TeKilla Cheat")
      log_amx("Player %s %s was Banned for TeKilla Cheat",name,auth)
    }
    if (equal(infoField3,"Hack_User")) {
      server_cmd("amx_ban %d %s %s",0,auth,"Mic Cheat")
      log_amx("Player %s %s was Banned for Mic Cheat",name,auth)
    }
    if (equal(infoField4,"Hack_User")) {
      server_cmd("amx_ban %d %s %s",0,auth,"Alpha Cheat")
      log_amx("Player %s %s was Banned for Alpha Cheat",name,auth)
    }
    server_exec()
  }
 }
__________________
Admin @ www.crew-nexus.net -- The best dutch gaming community around -- For our servers: http://www.crew-nexus.net/servers
-W0kk3L- is offline
Alemanmp
New Member
Join Date: Sep 2006
Old 09-24-2006 , 11:25   Re: Plugin Request : Check the setinfo...
Reply With Quote #3

Thank you, but i think you didnt understandme, i need a plugin that checks the setinfo "contra" "lam" and if they dont exist the plugins kicks the player..
Cya
PD: Use the words contra and lam in the example, and i will understand how it works.

Last edited by Alemanmp; 09-24-2006 at 11:30.
Alemanmp is offline
Alemanmp
New Member
Join Date: Sep 2006
Old 09-24-2006 , 17:33   Re: Plugin Request : Check the setinfo...
Reply With Quote #4

Somebody help please!
Cya
Alemanmp is offline
newbie1233
BANNED
Join Date: Jul 2006
Old 09-25-2006 , 06:31   Re: Plugin Request : Check the setinfo...
Reply With Quote #5

u wont find this now a days in the setinfo and if they stopped cheating it wouldnt prove nothing i got a better cheat detector u mite need this

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init(){
  register_plugin("Ecstatic Check","2.1","Anthrax/newbie1233")
}
public client_putinserver(id){
  new infoField[32]
  new infoField2[32]
  new infoField3[32]
  new infoField4[32]

  get_user_info(id,"EcstaticCheat",infoField,32)
  get_user_info(id,"TeKilla",infoField2,32)
  get_user_info(id,"MicCheat",infoField3,32)
  get_user_info(id,"AlphaCheat",infoField4,32)
  get_user_info(id,"#%dCheat",infoField4,32)


 if((equal(infoField,"Hack_User"))||(equal(infoField2,"Hack_User"))||(equal(infoField3,"Hack_User"))||(equal(infoField4,"Hack_User"))){
    new name[32]
    new auth[32]

    get_user_name(id,name,31)
    get_user_authid(id,auth,31)

    if (equal(infoField,"Hack_User")){
      server_cmd("amx_kick #%d %s %s",0,auth,"kicked because of Ecstatic Cheat plz remove in cstrike config.cfg")
      log_amx("Player %s %s was Banned for Ecstatic Cheat",name,auth)
    }
    if (equal(infoField2,"Hack_User")) {
      server_cmd("amx_kick #%d %s %s",0,auth,"kicked because of TeKilla Cheat plz remove in cstrike config.cfg")
      log_amx("Player %s %s was Banned for TeKilla Cheat",name,auth)
    }
    if (equal(infoField3,"Hack_User")) {
      server_cmd("amx_kick #%d %s %s",0,auth,"kicked because of Mic Cheat plz remove in cstrike config.cfg")
      log_amx("Player %s %s was Banned for Mic Cheat",name,auth)
    }
    if (equal(infoField4,"Hack_User")) {
      server_cmd("amx_kick #%d %s %s",0,auth,"kicked because of Alpha Cheat in setinfo plz remove in cstrike config.cfg")
      log_amx("Player %s %s was Banned for Alpha Cheat",name,auth)
    }
    if (equal(infoField4,"Hack_User")) {
      server_cmd("amx_kick #%d %s %s",0,auth,"kicked because of #%d Cheat in setinfo plz remove in cstrike config.cfg")
      log_amx("Player %s %s was Banned for #%d Cheat",name,auth)
    }
    server_exec()
  }
 }
Attached Files
File Type: sma Get Plugin or Get Source (cheatdetector.sma - 677 views - 1.9 KB)

Last edited by newbie1233; 09-25-2006 at 06:41.
newbie1233 is offline
Alemanmp
New Member
Join Date: Sep 2006
Old 09-25-2006 , 18:10   Re: Plugin Request : Check the setinfo...
Reply With Quote #6

Thanks again, but i dont need a cheat detector, i only neded a plugin that checks something of the setinfo (like de admins plugin that checks te password)
Cya
Alemanmp 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 12:32.


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