AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Terms Agreement [Memory Leak Fixed] (https://forums.alliedmods.net/showthread.php?t=57589)

mateo10 07-07-2007 16:44

Terms Agreement [Memory Leak Fixed]
 
2 Attachment(s)
Terms Agreement

Installation
[1] Create a file named "terms.txt" in addons/sourcemod/configs.
[2] Put your terms in that file, and save it (see down).

Example terms.txt file:
Code:

Before playing on this server
you have to agree to these terms:
- Do not cheat
- Do not swear
- Obey the admins

Notes
The plugin is untested, because I'm at my "bad" computer, which doesn't have CSS, or any other source mod.

Credits
Everyone that helped me at #sourcemod.
Extra big thanks to BAILOPAN.

If you have 1.0, you HAVE to update to 1.1. There was a bug, and I changed the menu system to panels.

Updated with CloseHandle(hFile)

Rebell 07-08-2007 03:42

Re: Terms Agreement
 
Good idea.

Will this be shown at connect or at every mapchange ?


cya

mateo10 07-08-2007 05:59

Re: Terms Agreement
 
It will be shown when the player spawns his first time. I don't know how to save the data, but when I do I will add that the player only has to agree to the terms 1 time.

mateo10 07-08-2007 09:00

Re: Terms Agreement
 
Plugin updated (see main post).

API 07-08-2007 11:58

Re: Terms Agreement
 
Cool idea :]

Falco 07-08-2007 21:10

Re: Terms Agreement
 
Works good except that if I enable the statsmeminimum menu when you join the agreement gets closed when this menu opens. You then do not have to agree and can play without reading agreement.
[02] Statsmeminimum Plug 1.3.0.8b Roger Devil RUN
smm_dmg_choosestats 0 // Displays a menu on the clientwhere you can choose the stats

Wolfman Jack 07-11-2007 10:25

Re: Terms Agreement
 
I have found that when a player declines to agree, it crashes the server. It is a Windows server, runing DOD:Source. I have the latest Sourcemod build as of yesterday and it still crashes the server.

mateo10 07-11-2007 12:52

Re: Terms Agreement
 
Strange, I tested to decline, and I got kicked.
Did it print an error message or anything?

yester64 07-11-2007 23:18

Re: Terms Agreement
 
mm.. does not work with gungame.
in the moment the gungame menu appears, your menu disappears.

can't use it so far, but would like to.

Rebell 07-12-2007 13:40

Re: Terms Agreement
 
Quote:

Originally Posted by yester64 (Post 502303)
mm.. does not work with gungame.
in the moment the gungame menu appears, your menu disappears.

can't use it so far, but would like to.

Would be nice if plugins would use somethink similar to eventscripts popup code from mattie. If there are more than 1 popups, then the other popup will come after the other....

cya


All times are GMT -4. The time now is 16:03.

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