AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   my very first post :D (https://forums.alliedmods.net/showthread.php?t=12559)

OREOS 04-18-2005 01:29

my very first post :D
 
Ok, I'm new to the scene and I wanted to know if there was a way I could check each word of what someone says, so if they say ___ is a fuckin hacker, but only part of ___'s name, it'll pickup on that, and preceed a vote kick on that player, type of thing ;P

n0obie4life 04-18-2005 06:16

yes its possible :P.

ask someone good to help. my scripts suck :D.

BioHazardousWaste 04-18-2005 07:04

Hey man, welcome :)

Many people want that, and the forum is full of that script. I'd suggest doing a search, the code isn't hard; but I don't have time to write one right now :( Sorry.

BigWalnutZ 04-18-2005 10:36

thats why you have good admins on a server. a plugin as you describe would be extremely abused the moment some nub figured out how to do it. everytime they die some else is a hacker

XxAvalanchexX 04-18-2005 15:22

Re: my very first post :D
 
Quote:

Originally Posted by OREOS
but only part of ___'s name, it'll pickup on that

There are way too many ways to avert this, it's practically (if not fully) impossible.

BioHazardousWaste 04-18-2005 15:51

C'mon Avalanche, there's a way to capture a message.. I've seen it in other posts. I will most likely be using this myself. Consider instead of outright kicking/banning them, having a vote. Have a command called Report_Hacker, with the parameter being the accused persons player ID.
(um, not steam id, but player number id)

Pseudocode:

Code:
Report_Hacker(HackerID)       for count 0 to 33 //go through every player            //get id            if id = HackerID //if this is the apparent hacker                if adminisonline // if an admin is online                   //display message - Name is accused of hacking                   //(if you were good, you could have a kick/ban menu popup for admin 1 = kick 2 = ban 0 = exit)               else //if no admin is online                   //display voteban menu (time of say 30 mins for example), let players vote to ban apparent hacker               end if               exit for//stop looking            end if       end for//continue looping

Sorry that's not actuall code, i haven't made it yet, and don't feel like doing it right now, but that's the idea. I will most likely have this running by the end of the week, if anyone wants it.

XxAvalanchexX 04-18-2005 21:30

Quote:

Originally Posted by BioHazardousWaste
C'mon Avalanche, there's a way to capture a message..

I know that, but he asked if it can pick up on only part of the user's name. So many problems:

hello and yellow join
"ello h4x!"
Which one is it?

John, a hacker joins...
"jon h4x!"
Nothing happens.

Eskimo bob joins...
"eskmo h4x!"
Nothing happens.

Stupid people that can't spell anything correctly...

BioHazardousWaste 04-20-2005 15:39

lol yeah, no kidding but some people have bitching names, so what i'm doing is having it like the slap/kick/ban command where you only need to specify enough of the beginning of the name for it to find only 1 user... or just pass in id. I wrote a command that shows all users and ids, that will probly be the easiest way.


All times are GMT -4. The time now is 09:57.

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