Raised This Month: $ Target: $400
 0% 

Terms and Agreement


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
dejan
Senior Member
Join Date: Mar 2009
Location: Sweden
Old 09-29-2010 , 19:57   Terms and Agreement
Reply With Quote #1

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

Attached Files
File Type: sma Get Plugin or Get Source (agreement.sma - 1157 views - 2.7 KB)
__________________

Last edited by dejan; 09-30-2010 at 09:26.
dejan is offline
Send a message via Skype™ to dejan
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 09-29-2010 , 20:12   Re: Terms and Agreement
Reply With Quote #2

Change it to bool:array[33]

You have
#define Website "blah"
yet you never use it...
__________________
RedRobster is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-29-2010 , 20:22   Re: Terms and Agreement
Reply With Quote #3

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.
__________________
fysiks is offline
dejan
Senior Member
Join Date: Mar 2009
Location: Sweden
Old 09-29-2010 , 20:58   Re: Terms and Agreement
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
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.
__________________
dejan is offline
Send a message via Skype™ to dejan
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-29-2010 , 21:54   Re: Terms and Agreement
Reply With Quote #5

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 View Post
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.
__________________

Last edited by fysiks; 09-29-2010 at 21:56.
fysiks is offline
dejan
Senior Member
Join Date: Mar 2009
Location: Sweden
Old 09-29-2010 , 22:39   Re: Terms and Agreement
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
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.
__________________
dejan is offline
Send a message via Skype™ to dejan
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-30-2010 , 01:22   Re: Terms and Agreement
Reply With Quote #7

What is different from other existing plugins ? (there are few of them)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dejan
Senior Member
Join Date: Mar 2009
Location: Sweden
Old 09-29-2010 , 20:39   Re: Terms and Agreement
Reply With Quote #8

Quote:
Originally Posted by RedRobster View Post
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
__________________

Last edited by dejan; 09-29-2010 at 20:52.
dejan is offline
Send a message via Skype™ to dejan
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-30-2010 , 07:47   Re: Terms and Agreement
Reply With Quote #9

U should provide an example of rules.txt and point it to (what folder ? cstrike ? as no get_configsdir in your code )
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Rossonero
Senior Member
Join Date: Mar 2009
Location: Location
Old 09-30-2010 , 18:27   Re: Terms and Agreement
Reply With Quote #10

some links Connor?

it's kinda interesting
__________________
signature
Rossonero is offline
Reply



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 20:11.


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