you know in the offical nfo servers

This is used for general discussion that is not necessarily server-related.
Post Reply
User avatar
EBH
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jul 18, 2006 9:19 pm

you know in the offical nfo servers

Post by EBH »

how there is green text that says report a hackor

the amx_report thing

can some1 give me a link to the plugin.

-- Thanks, EBH.
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Re: you know in the offical nfo servers

Post by Nick|NFo »

EBH wrote:how there is green text that says report a hackor

the amx_report thing

can some1 give me a link to the plugin.

-- Thanks, EBH.
I'm sorry, but there is no link to the plugin because it was coded inhouse by us for the NFo Gaming Community.
-Nick
User avatar
EBH
New to forums
New to forums
Posts: 9
Joined: Tue Jul 18, 2006 9:19 pm

Post by EBH »

damnit ive seen it in other servers to err.

iight i guess i gotta learn how to write amx code or ask some1 on am forums to do this thanks
cs 1.6 24/7 aim_ak-colt - ip:port -
ebh.nuclearfallout.net:27015
Image
http://www.clan-g.ztechworx.com
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

EBH wrote:damnit ive seen it in other servers to err.

iight i guess i gotta learn how to write amx code or ask some1 on am forums to do this thanks
I hope not our specific plugin, but yes there are other similar plugins out there that use different systems to report. Those use /calladmin which was originally written for amx. You might want to look into that, but we should be the only amx_report plugin out there and our setup is very unique.
-Nick
User avatar
EBH
New to forums
New to forums
Posts: 9
Joined: Tue Jul 18, 2006 9:19 pm

Post by EBH »

yeah that may be the one ive seen, do you know if its for amxX and the author made it public?

ima google around some more that plguin as nice to have
cs 1.6 24/7 aim_ak-colt - ip:port -
ebh.nuclearfallout.net:27015
Image
http://www.clan-g.ztechworx.com
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

EBH wrote:yeah that may be the one ive seen, do you know if its for amxX and the author made it public?

ima google around some more that plguin as nice to have
Don't think it ever was :(

We created amx_report to focus on our existing systems and we wanted a different approach than using the motd and a website, which /calladmin uses.
-Nick
User avatar
EBH
New to forums
New to forums
Posts: 9
Joined: Tue Jul 18, 2006 9:19 pm

Post by EBH »

ah joo give the .sma? >:-)

calladmin is that public?

and if so u got a link onhand for it?
cs 1.6 24/7 aim_ak-colt - ip:port -
ebh.nuclearfallout.net:27015
Image
http://www.clan-g.ztechworx.com
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

They are extremely old plugins and not even sure if they work anymore.

http://djeyl.net/forum/index.php?showtopic=26040

http://djeyl.net/forum/index.php?showtopic=26119

Those I found by using the search feature ;)
-Nick
User avatar
EBH
New to forums
New to forums
Posts: 9
Joined: Tue Jul 18, 2006 9:19 pm

Post by EBH »

bah thats amx i use amxx but no problem, thanks man.
cs 1.6 24/7 aim_ak-colt - ip:port -
ebh.nuclearfallout.net:27015
Image
http://www.clan-g.ztechworx.com
schlafen
A semi-regular
A semi-regular
Posts: 28
Joined: Fri Jun 10, 2005 1:26 pm

Post by schlafen »

Nick, I'm disappointed in you (not really). I am surprised you have never seen this plugin.

Here is the source:

Code: Select all

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "ReportNRequest"
#define VERSION "2.0"
#define AUTHOR "SentryIII"

new Float:flooding[34]

public plugin_init(){ 
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_cvar("rnr_reporting","1")
	register_cvar("rnr_requesting","1")
	register_cvar("rnr_sendtime","60")
	register_clcmd("amx_report","report_go",ADMIN_ALL," <your report> - report suspected cheaters or abusive admins")
	register_clcmd("amx_request","request_go",ADMIN_ALL," <your request> - sumbit a request for the server")
	return PLUGIN_CONTINUE 
}

public report_go(id){ 
	new reports_filename[128],logspath[64],basepath[64]
	get_basedir(basepath,63)
	format(logspath, 63, "%s/logs", basepath)
	format(reports_filename, 127, "%s/reports.log", logspath)
	new Float:max_send = get_cvar_float("rnr_sendtime")
	if (get_cvar_num("rnr_reporting") == 1){
		if (max_send){
			new Float:ntime = get_gametime()
			if (flooding[id] > ntime) {
				flooding[id] = (ntime + max_send) * 2.0
				client_print(id,print_notify,"** Please wait")
				return PLUGIN_HANDLED
			}
			else{
				new name[32],authid[64],text[256],longstring[512],argument[128],argc = read_argc()
				get_user_name(id,name,31) 
				get_user_authid(id,authid,63) 
				for (new i = 1;i < argc;i++) { 
					read_argv(i,argument,127) 
					if (i > 1) 
					add(longstring,255," ")
					add(longstring,255,argument) 
				}
				format(text,511,"<%s><%d><%s>: %s",name,get_user_userid(id),authid,longstring)
				write_file(reports_filename,text)
				log_amx("** Report was been submitted.")
				client_print(0,print_chat,"** Report has been submitted.")
				new maxplayers = get_playersnum()
				for(new i = 1; i <= maxplayers; ++i){
					if (get_user_flags(i)&ADMIN_IMMUNITY){
						show_motd(i,text,"User Report")
						client_print(i,print_chat,"** Report has been submitted by %s.",name)
						client_print(i,print_console,text)
					}
				}
			}
			flooding[id] = ntime + max_send
		}
	}
	return PLUGIN_HANDLED
} 

public request_go(id){ 
	new requests_filename[128],logspath[64],basepath[64]
	get_basedir(basepath,63)
	format(logspath, 63, "%s/logs", basepath)
	format(requests_filename, 127, "%s/requests.log", logspath)
	new Float:max_send = get_cvar_float("rnr_sendtime")
	if (get_cvar_num("rnr_requesting") == 1){
		if (max_send){
			new Float:ntime = get_gametime()
			if (flooding[id] > ntime) {
				flooding[id] = ntime + max_send * 2.0
				client_print(id,print_notify,"** Please wait")
				return PLUGIN_HANDLED
			}
			else{
				new name[32],authid[64],text[256],longstring[512],argument[128],argc = read_argc()
				get_user_name(id,name,31) 
				get_user_authid(id,authid,63) 
				for (new i = 1;i < argc;i++) { 
					read_argv(i,argument,127) 
					if (i > 1) 
					add(longstring,255," ")
					add(longstring,255,argument) 
				}
				format(text,511,"<%s><%d><%s>: %s",name,get_user_userid(id),authid,longstring)
				write_file(requests_filename,text)
				log_amx("** Report was been submitted.")
				client_print(0,print_chat,"** Request has been submitted.")
				new maxplayers = get_playersnum()
				for(new i = 1; i <= maxplayers; ++i){
					if (get_user_flags(i)&ADMIN_IMMUNITY){
						show_motd(i,text,"User Request")
						client_print(i,print_chat,"** Request has been submitted by %s.",name)
						client_print(i,print_console,text)
					}
				}
			}
			flooding[id] = ntime + max_send
		}
	}
	return PLUGIN_HANDLED
} 
The forum topic: http://forums.alliedmods.net/showthread ... est+report

I personally updated it to fit correct specs. for amxx.

This will write to 2 different files request.log and report.log with the information provided by the user. I have never had the chance to look at the way NFo has coded their report plugin but maybe it uses SOCKETS to retrieve an admin who is online.

If you want something to communicate with IRC:
http://forums.alliedmods.net/showthread ... est+report

Sleeper/Slmclarengt
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

I saw that one using amx_report, but its completely different since it sends to a log file where ours sends to IRC.

I told him about that plugin on his own topic on the amxmodx forums ;)
-Nick
User avatar
EBH
New to forums
New to forums
Posts: 9
Joined: Tue Jul 18, 2006 9:19 pm

Post by EBH »

i didnt really want the report thing just the colored text :) got it though thanks for ur help.
cs 1.6 24/7 aim_ak-colt - ip:port -
ebh.nuclearfallout.net:27015
Image
http://www.clan-g.ztechworx.com
BnD|Sleeper
This is my homepage
This is my homepage
Posts: 140
Joined: Wed Aug 02, 2006 8:52 am

Post by BnD|Sleeper »

Nick|NFo wrote:I saw that one using amx_report, but its completely different since it sends to a log file where ours sends to IRC.

I told him about that plugin on his own topic on the amxmodx forums ;)
Ah, implementing devicenull's HLDS -> IRC plugin API most likely. I was thinking that was what it did. I don't think he knew precisely where it sent so I doubt it would have been that big of an issue.

Sleeper
http://www.BnDClan.com

WC3:FT CS 1.6: wc3.bndclan.com:27015 or 64.94.101.52:27015)

http://rentals.nuclearfallout.net/rent. ... ferrer=bnd
Post Reply