Monthly Target: $400 Donations: $126
 31% 

Terms Agreement [Memory Leak Fixed]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
mateo10
Veteran Member
Join Date: Jan 2006
Plugin ID:
70
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    31 
    Plugin Description:
    On connect, the client has to agree to the terms, or he will be kicked!
    Old 07-07-2007 , 17:44   Terms Agreement [Memory Leak Fixed]
    Reply With Quote #1

    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)
    Attached Files
    File Type: sp Get Plugin or Get Source (termsagreement.sp - 5423 views - 2.2 KB)

    Last edited by mateo10; 10-23-2007 at 13:06.
    mateo10 is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 07-08-2007 , 04:42   Re: Terms Agreement
    Reply With Quote #2

    Good idea.

    Will this be shown at connect or at every mapchange ?


    cya
    __________________
    Rebell is offline
    mateo10
    Veteran Member
    Join Date: Jan 2006
    Old 07-08-2007 , 06:59   Re: Terms Agreement
    Reply With Quote #3

    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 is offline
    mateo10
    Veteran Member
    Join Date: Jan 2006
    Old 07-08-2007 , 10:00   Re: Terms Agreement
    Reply With Quote #4

    Plugin updated (see main post).
    mateo10 is offline
    pimpinjuice
    Veteran Member
    Join Date: May 2006
    Old 07-08-2007 , 12:58   Re: Terms Agreement
    Reply With Quote #5

    Cool idea :]
    __________________
    pimpinjuice is offline
    Send a message via AIM to pimpinjuice
    Falco
    SourceMod Donor
    Join Date: Dec 2004
    Location: CANADA
    Old 07-08-2007 , 22:10   Re: Terms Agreement
    Reply With Quote #6

    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
    __________________
    [DmZ|EPSILON CSS 70.75.139.92:27016
    [DmZ|EPSILON GG 70.75.167.30:27015
    [DmZ|EPSILON CS:GO Classic Casual 70.75.139.92:27013
    [DmZ|EPSILON CS:GO Demolition 70.75.139.92:27014
    [DmZ|EPSILON BF3 69.46.43.221:25203 (8-slot) Practice Server
    www.dmzepsilon.ca
    ----------------------
    Falco is offline
    Wolfman Jack
    Junior Member
    Join Date: Jun 2007
    Old 07-11-2007 , 11:25   Re: Terms Agreement
    Reply With Quote #7

    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.
    Wolfman Jack is offline
    mateo10
    Veteran Member
    Join Date: Jan 2006
    Old 07-11-2007 , 13:52   Re: Terms Agreement
    Reply With Quote #8

    Strange, I tested to decline, and I got kicked.
    Did it print an error message or anything?
    mateo10 is offline
    yester64
    Senior Member
    Join Date: May 2007
    Old 07-12-2007 , 00:18   Re: Terms Agreement
    Reply With Quote #9

    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.
    __________________
    yester64 is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 07-12-2007 , 14:40   Re: Terms Agreement
    Reply With Quote #10

    Quote:
    Originally Posted by yester64 View Post
    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
    __________________
    Rebell is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 02:15.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode