Raised This Month: $51 Target: $400
 12% 

Call an admin via irc aka ReportCheater v1.51


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
sphott
Member
Join Date: May 2010
Old 07-15-2010 , 08:31   Call an admin via irc aka ReportCheater v1.51
Reply With Quote #1

.: Report cheater v1.51 :.
description:
When a player type in "/cheat", a menu appear and he can choose who is cheating on the server.

The plugin sends an msg to irc server with both players steam ids and nicks.


The admin can ban/unban players from this service.

It can also communicate with other plugins (not yet, but with a little work) with cvars:
  • irc_listening 1 to communication (default 0)
  • irc_listened other plugin set this cvar(0:nothing,1:send msg)
  • irc_listened_msg other plugin set this cvar, the msg what wanna send the irc channel
easy way to make it work is changing the punishment function to something like that:
PHP Code:
punish(id){
    new 
name[32],authid[32],msg[128]
    
get_user_name(id,name2,32)
    
get_user_authid(id,authid2,32)
    
format(msg,128,"[PINK SHOE DETECTOR] %s(%s) has pink shoes!!!",name,authid)
    
set_cvar_string("irc_listened_msg",msg)
    
set_cvar_num("irc_listened",1)


I rewrited this plugin from an other ircbot-source
http://forums.alliedmods.net/showthread.php?t=85243
I completely removed all the "useless" code what doesnt need for this plugin.
commands:

on hlds:
  • "/cheat" - send cheater id and name to irc and admins on server
  • "/admin msg" -send admin request and msg to irc, and admins on server
  • auto advertising the /cheat command
  • can communicate with other plugins with cvars
on irc:
  • nothing
C-vars:

You need to set this cvars to work
  • irc_server "server" server hostname or ip
  • irc_port "port" server port
  • irc_mynick "nickname" bot's nickname
  • irc_mychan "#channel" channel to join
optional cvars:
  • irc_identify "default:0" 1 to identify
  • irc_ident "ident code" if irc_identify is "1"
    on quakenet: irc_ident "PRIVMSG [email protected] : AUTH nick pw"
  • irc_from_hlds_say_activator "/cheat"
  • irc_adv_freq default:"300.0" advertise the /cheat command in sec
communication with other plugins:
  • irc_listening (default 0) set it 1 to communication.

    only other plugin need to set this two cvars, after reporting to irc they gonna set to default:
  • irc_listened "0" other plugin set this cvar(0:default,1:cheat)
  • irc_listened_msg "" other plugin set this cvar, if irc_listened=1 msg will send to irc
install:
  • copy sma to scripting
  • compile
  • copy amxx to plugins
  • copy txt to /data/lang
  • set up amx.cfg with cvars
credits:

naeo nIRC - An AMXX irc-bot
Devicenull hlds<->irc plugin
WaZZeR Vote Kick/Ban Menu
changelog:

1.51 Bugfix with /admin command, code optimization
1.5 Added banlist, bugfix on server crash
1.33 bugfix with admin notification
1.32 bugfix with communication
1.31 bugfix, code optimization
1.3 Other plugin support, pcvars ;-D, bugfix
1.0 completely rewrited
0.3 First release
Attached Thumbnails
Click image for larger version

Name:	ircmsg.jpg
Views:	4639
Size:	10.9 KB
ID:	69714   Click image for larger version

Name:	ircwh2.JPG
Views:	6481
Size:	22.8 KB
ID:	69716   Click image for larger version

Name:	rcban.JPG
Views:	6992
Size:	18.1 KB
ID:	70721   Click image for larger version

Name:	pink.JPG
Views:	4210
Size:	6.4 KB
ID:	70722  
Attached Files
File Type: txt reportcheater.txt (1.4 KB, 663 views)
File Type: sma Get Plugin or Get Source (reportcheater.sma - 1489 views - 19.0 KB)
__________________

SilenceGaming.com - [HUN] Neptune 79.172.211.29:27019
AIM/FFA CSDM





Last edited by sphott; 01-24-2011 at 07:03. Reason: v1.51
sphott is offline
talibana
Member
Join Date: Oct 2008
Location: United Kingdom
Old 07-15-2010 , 09:05   Re: Call an admin via irc
Reply With Quote #2

old version of this plugin crashed may servers 4-5 times on day or more...
talibana is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-15-2010 , 09:54   Re: Call an admin via irc
Reply With Quote #3

You should really use PCvars.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Old 07-15-2010, 12:50
DeLiriuM
This message has been deleted by DeLiriuM.
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 07-15-2010 , 13:03   Re: Call an admin via irc
Reply With Quote #4

Exactly as the old plugin, the bot doesn't want to join the specified channel.

Good job though

//found the problem. The irc server was (is) a .bg domain. I tested it with a .org and it worked.
__________________

Last edited by DeLiriuM; 07-15-2010 at 15:31.
DeLiriuM is offline
sphott
Member
Join Date: May 2010
Old 07-15-2010 , 17:08   Re: Call an admin via irc
Reply With Quote #5

Quote:
Originally Posted by DeLiriuM View Post
Exactly as the old plugin, the bot doesn't want to join the specified channel.

Good job though

//found the problem. The irc server was (is) a .bg domain. I tested it with a .org and it worked.
I have no problem with quakenet. It works for me for 2 days
QUAKENET: #silencegaming
tester-server: 79.172.211.29:27019

I will try to remove more "useless" functions from the plugin. I think the problem is server-side.
__________________

SilenceGaming.com - [HUN] Neptune 79.172.211.29:27019
AIM/FFA CSDM




sphott is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-15-2010 , 21:12   Re: Call an admin via irc
Reply With Quote #6

already made?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
sphott
Member
Join Date: May 2010
Old 07-19-2010 , 09:52   Re: Call an admin via irc
Reply With Quote #7

Quote:
Originally Posted by DruGzOG View Post
already made?
done
__________________

SilenceGaming.com - [HUN] Neptune 79.172.211.29:27019
AIM/FFA CSDM




sphott is offline
sphott
Member
Join Date: May 2010
Old 07-27-2010 , 11:09   Re: Call an admin via irc
Reply With Quote #8

Quote:
Originally Posted by talibana View Post
old version of this plugin crashed may servers 4-5 times on day or more...
this is a completely different code now. zero crash for a week.

Code:
1.5 released
fixed reconnect bug
added banlist
__________________

SilenceGaming.com - [HUN] Neptune 79.172.211.29:27019
AIM/FFA CSDM




sphott is offline
likekurva
Junior Member
Join Date: Jan 2010
Old 07-27-2010 , 16:13   Re: Call an admin via irc aka ReportCheater v1.5
Reply With Quote #9

polish lang
Code:
[pl]
IRC_MSG = uwaza %s ze %sing czituje. Sid: (%s)
IRC_REQ = Zgloszenie do admina przez %s (%s)
IRC_REQ = Twoje zgloszenie zostalo wyslane do admina!
IRC_ADVERT = Napisz /cheat jesli widzisz cheatera!
IRC_ALREADY_BANNED = Jest aktualnie zbanowany!
IRC_ADDED = Gracz dodany do banlisty!
IRC_NOTFOUND = Gracz nie znaleziony na banliscie!
IRC_REMOVED = Gracz usuniety z banlisty!
__________________
My FFA server:

Reksio polish servers!
likekurva 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:29.


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