Help - Search - Members - Calendar
Full Version: Report Hacker Script
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
Nazadus
I'm thinking of writting an AMX Mod X script that will do the following:

* Allow the user to do a `/report <email address>` in the console and that will give him the current list of players and let the admin know how to contact them.
- In that list, all *red* players will be considered reported as hacking by someone already
- In that list, all *white* players will be those not reported.
- Selecting someone from the list will give them a question: Do they have a demo?"

* When reported, this script will insert an entry into a MySQL table. It will contain the following:
- Reporters Steam ID
- Reporters Alias
- Reporters Email Address
- Eleged Hackers Steam ID
- Eleged Hackers Alias
- Timestamp
- Server Name
- Demo
- Verified [So an admin will know if this instance has already been investigated or not)

Now, those that have PHP (or some dynamic language) could *easily* query the database and have it do events, like email someone or IM someone, depending on the capabliity of the language.
You would setup a cron job (or scheduled task) to parse the database for new entries and then do as you wish however often you want. I would probably suggest once every 5 minutes.

I'm thinking of writting this becuase I *hate* leaving a server with a demo to post on the forums, come back and the server is full. It takes just long enough to get kicked by being idle. sad-fix.gif
This also gives other players the ability to help -- or whomever ou choose to help. This would allow your regulars (those you trust a little more than the anonymous players) players to help -- or something.

Thoughts? Suggestions?
Would anyone use this? (ie, is this worth my time?)
tsa.gif hive5.gif
unique
Is this possible? o_O If so, it sounds pretty hard.

Pretty neat, though.
Nazadus
Not really.
The code itself would be fairly simple.

Here is how it works:

someone dues `/report someone@domain.com`
The script queries the database for anyone already reported that matches this alias or steam id. It would throw that information in an array. The select would be somethign like:

SELECT hacker_id, hacker_alias FROM some_table WHERE eleged_id=hacker_id or eleged_alias=hacker_alias;

hmm.. thinking about it, perhaps a menu isn't the way to go -- perhaps everyting should be the console.

Perhaps:
/report_list -- would display those reported in this current session that matched the alias and/or ID (simple select query)
/report_submit -- would allow yu to submit a eleged report. (simple insert query)


hmm
joee
this forum is for scripting via the HL console/engine and i doubt anyone could help you with whatever code you're using for this thing honestly

maybe try the AMX\whatever forums
Depot
Nazadus, we'd be glad to have you aboard on the modNS.org Forums, stop by and register and I'll set you up. wink-fix.gif
xxxacexxx
steal it from hlguard
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.