AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Terms and Agreement (https://forums.alliedmods.net/showthread.php?t=139337)

dejan 09-29-2010 19:57

Terms and Agreement
 
1 Attachment(s)
Description:

When you connect you and join a team you will get up a menu and motd with the rules. In the menu you can choose between
1. I Agree
2. I Disagree
3. Show The Rules

if you choose "I Agree" then you agree with these rules and you can continue playing.
If you choose "I Disagree" then you disagree with these rules and it will kick you from the server.
If you choose "Show The Rules" then a motd will be displayed for you with the rules in it.

Edit Website Display:

Open the source: agreement.sma
find
PHP Code:

#define Website "http://collusion-gaming.mine.nu" 

and edit
"http://collusion-gaming.mine.nu"
to your website.

Commands:

/rules

Tutorial:

Open plugins.ini in "addons/amxmodx/config"
now add

agreement.amxx
under
; Custom - Add 3rd party plugins here
now save and close.

Put the file
agreement.amxx
into
"addons/amxmodx/plugins"
Put the file
agreement.sma
into
"addons/amxmodx/scripting"

Create a text file called
rules.txt
in your cstrike folder.

and type in your rules with HTML.

Credits:
Mati_
Exolent[jNr]

Image:
http://img844.**************/img844/6048/menukb.png


RedRobster 09-29-2010 20:12

Re: Terms and Agreement
 
Change it to bool:array[33]

You have
#define Website "blah"
yet you never use it...

fysiks 09-29-2010 20:22

Re: Terms and Agreement
 
Remove ColorChat. Remove your "Tutorial". Add a cvar to control the rules document. In a submitted plugin nothing should be hardcoded that will be different for every server that runs it.

dejan 09-29-2010 20:39

Re: Terms and Agreement
 
Quote:

Originally Posted by RedRobster (Post 1311735)
Change it to bool:array[33]

You have
#define Website "blah"
yet you never use it...

Changed to 33

and yes i use it

PHP Code:

formatex(Temp,100"Terms and Agreement^n\wVisit\r %s"Website


dejan 09-29-2010 20:58

Re: Terms and Agreement
 
Quote:

Originally Posted by fysiks (Post 1311740)
Remove ColorChat. Remove your "Tutorial". Add a cvar to control the rules document. In a submitted plugin nothing should be hardcoded that will be different for every server that runs it.

removed the colorchat.

fysiks 09-29-2010 21:54

Re: Terms and Agreement
 
PHP Code:

        case 3:
        {
            
mmenu(id)
            
show_motd(id"rules.txt""Server Rules")
        } 

This actually shows the motd twice.

Either use semi-colons or don't. Be consistent. (This is a sign of copy pasting)

Also,
Quote:

Originally Posted by fysiks (Post 1311740)
Remove your "Tutorial" (you only need stuff specific to your plugin). Add a cvar to control the rules document. In a submitted plugin nothing should be hardcoded that will be different for every server that runs it.


dejan 09-29-2010 22:39

Re: Terms and Agreement
 
Quote:

Originally Posted by fysiks (Post 1311779)
PHP Code:

        case 3:
        {
            
mmenu(id)
            
show_motd(id"rules.txt""Server Rules")
        } 

This actually shows the motd twice.

Either use semi-colons or don't. Be consistent. (This is a sign of copy pasting)

had problems with my rules tryed to fix it but turned out the rules.txt got a html code that kicked ppl from the server.

and the other i will do it tomorrow.

ConnorMcLeod 09-30-2010 01:22

Re: Terms and Agreement
 
What is different from other existing plugins ? (there are few of them)

avril-lavigne 09-30-2010 07:47

Re: Terms and Agreement
 
U should provide an example of rules.txt and point it to (what folder ? cstrike ? as no get_configsdir in your code )

Rossonero 09-30-2010 18:27

Re: Terms and Agreement
 
some links Connor? :)

it's kinda interesting


All times are GMT -4. The time now is 20:11.

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