PDA

View Full Version : Rules Agreement (Logging, works 100%~)


pdoubleopdawg
09-25-2005, 14:46
It's me DahVid, because of complaints that my other one didn't work. I've released a new one. It has new features aswell. I tested this on Half-Life for a while.
Only needs default modules enabled.

IMPORTANT:
The script will make a file called rules.txt in your cstrike (or moddir, etc ts,svencoop) folder when you first run it, put your rules in there!

Commands
amx_removedecline <name> -- takes user off of decline list.

What does it do
When players join they get a menu.

1. Agree
2. Decline

3. Show Rules (Shows rules.txt)

If the user hits Agree, it logs his authid, ip, and name into the directory
addons/amxmodx/agreed.ini

The menu won't pop up for him again. If he breaks a rule you might want to look into the logged file for proof he agree'd.


If the user hits decline, it logs his authid,ip, and name into the directory
addons/amxmodx/declined.ini
Then it kicks him.

Everytime he joins he will have 60 seconds before he is kicked. The 60 seconds are for if he wants to ask an admin if they can remove him from declined.ini.

Zenith77
09-25-2005, 15:34
Suggestion : You should make it were they can aggree when they come back instead of waiting for an admin.

pdoubleopdawg
09-25-2005, 15:56
No, because they see the effect and say
"Oh, even though I won't abide by the rules I can just hit agree now!"

pendragon
09-25-2005, 16:19
No, because they see the effect and say
"Oh, even though I won't abide by the rules I can just hit agree now!"

very good point.
You might want to look at nightscream's Mail_Mod plugin and encourage server ops to use it in conjunction with this one (or ask him to borrow parts of it) so that if they hit disagree and get that 60 sec. window of opportunity, they can leave a message for the server admins in case none are around for those 60 sec.s that the user has.

pdoubleopdawg
09-25-2005, 16:57
Yes, I actually was going to do that.

Although, I've got an old Report Mod I made so peers can report bugs for one of my plugins to a log file.

I might fix it in later.. :)

Busy now.

xjavo
09-25-2005, 17:05
"This is stupid and has been about 3,000 of these posted"

BeTa_TeStEr_321
09-25-2005, 17:07
"This is stupid and has been about 3,000 of these posted"

Exactly.

pdoubleopdawg
09-25-2005, 17:07
Ok, Azn,
Please point me out one of these that function just like mine and actually work.

xjavo
09-25-2005, 17:10
Ok, Azn,
Please point me out one of these that function just like mine and actually work.

This is very easy and simple.
also it could be done better to make sure they read it it has decline as yes and yes as no. so they have to read it ^-^

pendragon
09-25-2005, 17:12
"This is stupid and has been about 3,000 of these posted"

Show me one 3,000 that does:

If the user hits decline, it logs his authid,ip, and name into the directory
addons/amxmodx/declined.ini
Then it kicks him.

Everytime he joins he will have 60 seconds before he is kicked. The 60 seconds are for if he wants to ask an admin if they can remove him from declined.ini.

The key here is the loggging and the checking of clients as they enter.

Give the guy a break and get off your own high horse. There is still much room for improvement and this is where it will happen, in the non-approved section. If he doesn't then don't you worry your pretty lil' "helpful" head, the devs/mods will trash it.

pdoubleopdawg
09-25-2005, 17:13
Thankyou,
A personal belief is there can never be too many versions of one type of plugin unless they are the same exact code.

We need diversity and offer more choices! :)

xjavo
09-25-2005, 17:16
Thankyou,
A personal belief is there can never be too many versions of one type of plugin unless they are the same exact code.

We need diversity and offer more choices! :)
Im not here to flame him. Well its not bad im not trying to be mean im just making a point -.-'

pdoubleopdawg
09-25-2005, 17:21
You are trying to make a point that my plugin is stupid? I've seen 4 or 5 posted in which about 1 works and it's quite a bit different from mine, functions alot different.

xjavo
09-25-2005, 17:26
You are trying to make a point that my plugin is stupid? I've seen 4 or 5 posted in which about 1 works and it's quite a bit different from mine, functions alot different.
No The Point Isnt That Ur Plugin Is Stupid .. Appearently If u did Not Notice What I Said On Aim Cause Ur Blind I said NJ but u could do better im just trying to make a point alot of these have been posted-.-'

pdoubleopdawg
09-25-2005, 17:29
"This is stupid and has been about 3,000 of these posted"
...

and just like I said, that's why this is ALPHA. It works but I'm adding stuff in.
Like PenDragon's suggestion.

Also, like I said, I'll discontinue this plugin when you show me one that functions JUST like mine.

xjavo
09-25-2005, 17:30
"This is stupid and has been about 3,000 of these posted"
.and just like I said, that's why this is ALPHA. It works but I'm adding stuff in.
Like PenDragon's suggestion.
Also, like I said, I'll discontinue this plugin when you show me one that functions JUST like mine.

Did u even read what i said on aim.. ur blind.. |-End of convo-|

pdoubleopdawg
09-25-2005, 17:32
No, because my resolution is 1280x1024 and your text isn't visible.

xjavo
09-25-2005, 17:47
No, because my resolution is 1280x1024 and your text isn't visible.if its not visible ur comp sucks now im not talking in this thread anymore -.-'

BACARRA
09-25-2005, 19:17
can you point me to the other 3000 post like this azn. i have never seen 1. id like to see the difference in em if u can point me the way?

colby
09-25-2005, 20:26
Just ignore Azn, he's been looking for a ban for a while now.

bmann_420
09-26-2005, 00:12
This is nice, dahvid. So in other words their banned, untill an adimn deletes their name.

pdoubleopdawg
09-26-2005, 00:42
Eh, well 60 seconds is a reasonable enough time to nicely ask the admin. :)

bmann_420
09-26-2005, 01:13
but im the only one who can modify them, and im not in the server very often, so id ont always know if someone was messin around.

pendragon
09-26-2005, 03:25
but im the only one who can modify them, and im not in the server very often, so id ont always know if someone was messin around.

that's the whole point of what I suggested... read the last page.

bmann_420
09-26-2005, 14:18
I did :D I just also felt like saying it. just an opinion, thats all. I hate being talked to like im 15 though, even when you deal with them here all the time, i could understand, but grrrrr. :x

pdoubleopdawg
09-26-2005, 15:45
I'm 14 years old, FYI. :)
I also code a bit of C++ and learning Java/PHP.

Ahh well, age discrimination sucks, so don't be a hater. :D

bmann_420
09-26-2005, 18:32
Never a Hater :D Just dont like the Judgement part. Im 22 but people here talk to other people like their kids all the time, but o well. Thats because so many people know nothing of what their doing, so i cant hate their either :lol: But 14 eh, well looks like you have a solid career 8) When i was 14 i was gettin hammered every weekend askin bums to buy me beer if i bought em a 40oz and skippin class to go to Bonnie Lake. :twisted:

v3x
09-26-2005, 23:12
new agreedfile[]="addons/amxmodx/configs/agreed.ini"
new declinedfile[]="addons/amxmodx/configs/declined.ini"
Nice paths ;) .. Use get_configsdir() instead.

Small suggestion. Maybe make a cvar or a define for the rules file? Maybe someone wants to have a seperate file for it, I dunno :)

bmann_420
09-27-2005, 03:51
:D new name[50],authid[50],ip[50]
new motd[]="rules.txt"
new agreedfile[]="addons/amxmodx/configs/agreed.ini"
new declinedfile[]="addons/amxmodx/configs/declined.ini"

I just put rules instead of motd in there, my motd is a pretty picture with things other than rules so i made seperate rules page just for this :D

nusser49
09-27-2005, 13:29
Where is my modt.txt file

bmann_420
09-27-2005, 15:18
cstrike or your mod dir (if its not cstrike) Either that or just do a search in windows, thats how you find everything when you dont know where it is :twisted:

Curryking
09-27-2005, 15:34
Nice plugin, testing right now. Some suggestion:

1. The rules on motd.txt should be replaced with a own rules.txt (in the config folder)
2. How to unban people from the 60 sec. kick, seems the only way to do this is by editing the declined.ini, this should also be done by a command like amx_rulesunban for those admins who have no access to ftp.

Cheers, Curry

pdoubleopdawg
09-27-2005, 16:42
Thanks for the suggestion. I added
amx_removedecline
&
instead of using motd.txt it makes a file in your moddir called rules.txt

bmann_420
09-27-2005, 17:14
:D new name[50],authid[50],ip[50]
new motd[]="rules.txt"
new agreedfile[]="addons/amxmodx/configs/agreed.ini"
new declinedfile[]="addons/amxmodx/configs/declined.ini"

I just put rules instead of motd in there, my motd is a pretty picture with things other than rules so i made seperate rules page just for this :D

Whats so hard about that? But o well

Curryking
09-27-2005, 18:26
Hey pdoubleopdawg, I guess you are a little liar ;-) , 'cause Rules Agreement (Logging, works 100%~) isn't thrue

The plugin is running on our server and we have to accept the agreements serveral times, not only once. Something doesn't fit :-(
Anyoing when this menu popups in the middle of a game and you already have accepted the rules.

STEAM_0:0:33288 84.56.251.241:28806 [TGT_eLi73|NoNa1m3]
STEAM_0:0:6160602 83.248.234.76:27005 Nico -=play4fun=- (SWE)
STEAM_0:1:4299561 84.58.26.239:27005 amok
STEAM_0:0:7932050 80.140.205.78:27005 .-=|BBQ|=-.CChaos
STEAM_0:1:8640994 84.152.42.193:33522 JA3g3RM3!ST3R
STEAM_0:1:1201102 80.221.208.188:27005 REIJO
STEAM_0:0:324368 85.164.150.237:63287 piff
STEAM_0:1:351377 84.180.2.140:27005 wayne interessierts
STEAM_0:0:5972011 80.145.100.249:27005 The.Norbert
STEAM_0:0:8311382 172.183.57.121:64613 .-=|BBQ|=-.Curryking
STEAM_0:0:239206 84.230.146.138:27005 jobe
STEAM_0:1:3854299 85.75.60.51:27005 $eXe$-H0L0GRAPHIC
STEAM_0:1:4322095 84.171.73.253:27005 W33D !Z 1337
STEAM_0:0:4459408 84.165.163.137:61060 DaRk TeMpLeR
STEAM_0:1:2514732 84.248.206.85:27005 ANDY SIPOWICZ
STEAM_0:1:351377 84.180.2.140:27005 wayne interessierts
STEAM_0:0:8311382 172.183.57.121:64613 .-=|BBQ|=-.Curryking
STEAM_0:1:1201102 80.221.208.188:27005 REIJO
STEAM_0:1:8894116 84.139.4.134:27005 ibo
STEAM_0:1:7177681 84.173.201.176:36016 3l!t3fighTer|$h4d0wBl!zZ4rd

And another suggestions, should't the agreed.ini + declined.ini placed in the data-folder as a matter of form? ;-)

But also THX for this plugin and the support!

Cheers, Curry

bmann_420
09-27-2005, 18:49
Yes that is true, but i have only had to do that once, but some of my members have done it about 4 times so far.

pdoubleopdawg
09-27-2005, 19:00
*sigh* I don't know, post it in help or something. I'm busy and will be busy with Java for quite a bit.

Skyrider
09-29-2005, 09:26
I think this agreement should change into a MOTD box like. like there are 2 buttons..

A box pops up, you read the rules. But instead of OK, you have to press AGREE / I Won't agre.

Something like that.

pendragon
09-29-2005, 14:18
I think this agreement should change into a MOTD box like. like there are 2 buttons..

A box pops up, you read the rules. But instead of OK, you have to press AGREE / I Won't agre.

Something like that.

that's more work for the same end-result, why would you want to give the guy more work to do if its going to end up giving you the same result?

CLAN-URBAN
10-01-2005, 13:24
i Think its good i have source but had 1.6 and would use it if still had a 1.6 server i think people shoul not trash talk it because there the ones who wanted a new one so what is really dumb is to critisize it i dont see you working on one so why dont you give him a break

sub
10-03-2005, 16:15
when people join they shoudld not be able to move or attack until they accept.

bmann_420
10-03-2005, 16:24
*sigh* I don't know, post it in help or something. I'm busy and will be busy with Java for quite a bit.

Doesnt look that he will be helping any time soon.

Skyrider
10-04-2005, 14:14
I think this agreement should change into a MOTD box like. like there are 2 buttons..

A box pops up, you read the rules. But instead of OK, you have to press AGREE / I Won't agre.

Something like that.

that's more work for the same end-result, why would you want to give the guy more work to do if its going to end up giving you the same result?

Because upon join on Earth Special Forces, you see a character box, choose.. etc.. And when you're in the game you can choose either 1 or 2..

But on my suggestion, you HAVE to read the box upon join of the server, click Accept or not accept. So you wouldn't be able to join the game..

Smiffy
10-07-2005, 08:59
this work for dod then?

bmann_420
10-07-2005, 15:20
should, anyway see and find out. if it doesnt post it here

EKS
12-13-2005, 16:53
Plugin is unorigal moved to: Unapproved/Old Plugins

bmann_420
12-13-2005, 18:07
Well origional or not, is this not the only one that could possible work the best? I have not seen a plugin that works like this one yet, even tho this has a few bugs, but it still is the best working one i think so far.

Liquidz
01-03-2006, 00:05
Do i just put the sma in and thats all? i only get 1 file

bmann_420
01-03-2006, 02:13
Read teh .doc on how to install plugins. Click on Get Plugin and search for the rest

SlimMan
01-11-2006, 11:37
I am trying to get this to work in DOD, I have installed correctly and after it ran for the first time it created the files it uses so I went in and added our rules to the rules.txt file in the dod folder however the rules don't "ALWAYS" display.... so when you push the 3 it just does nothing. It doesn't add you to either the agreed or declined ini files and it allows you to stay on the server... I am currently using plain text (nothing fancy) in the rules.txt file, any Ideas what the problem could be?

I would also like to note that when you hit Disagree it doesn't kick ya!

Here is a list of other plugins that we currently use (besides the ones that are / on / by default, perhaps one of them could be conflicting?

; Day of Defeat
stats.amxx ; stats on death or round end (DoD Module required!)
statssounds.amxx ; precache plugin for stats plugins
stats_logging.amxx ; weapons stats logging (DoD Module required!)

;Custom - Add 3rd party plugins here
swear_replacement.amxx ;Swear word replacement
dod_tk_events.amx ;Team Kill punishment / notifier
dod_teammanager.amxx ;Auto balance teams, can be turn on and off
dod_clanmatch.amxx ;Used to setup and control clanmatchs
dod_oneweaponmod.amxx ;Plugin to control what wepaon u can use for fun (ie melee)
agree.amxx ;Rules / Policy Enforcement / Agreement


And here are the modules:

engine_amxx_i386.so
engine_amxx.dll
engine_amxx_amd64.so

fakemeta_amxx_i386.so
fakemeta_amxx.dll
fakemeta_amxx_amd64.so

dodfun_amxx_i386.so
dodfun_amxx.dll
dodfun_amxx_amd64.so

Thanks, Slim!

terrum
02-27-2007, 13:10
When you press "Show Rules" can you make the menu button exec the person to say in chat "!admin" as my rules are in there. Thanks, send me the script or tell me what to change, thanks

bmann_420
02-27-2007, 13:16
http://forums.alliedmods.net/showthread.php?t=51719

Updated

terrum
02-28-2007, 02:55
the new thread is cool. thanks for the help and i now know what to do

badalhoca
09-09-2009, 14:35
how can i do to the menu appears everytime the player join the server? i want the menu allthe times...