you know in the offical nfo servers
- EBH
- 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
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.
the amx_report thing
can some1 give me a link to the plugin.
-- Thanks, EBH.
Re: you know in the offical nfo servers
I'm sorry, but there is no link to the plugin because it was coded inhouse by us for the NFo Gaming Community.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.
-Nick
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.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
-Nick
Don't think it ever wasEBH 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
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
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
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
Nick, I'm disappointed in you (not really). I am surprised you have never seen this plugin.
Here is the source:
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
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
}
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
-
- This is my homepage
- Posts: 140
- Joined: Wed Aug 02, 2006 8:52 am
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.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
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
WC3:FT CS 1.6: wc3.bndclan.com:27015 or 64.94.101.52:27015)
http://rentals.nuclearfallout.net/rent. ... ferrer=bnd