Thread: Say Rules
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
SAMURAI16
BANNED
Join Date: Sep 2006
Old 12-17-2006 , 12:53   Say Rules
Reply With Quote #1

Say Rules v0.3


* Details :
For the first you can use a type to how will be displayed rules
You can choose display tipe : Print Chat, Print Center and Motd Display

* Commands :
- /sayrules : Will display all rules from a .txt file (you must create one)
- /sayrules 1 : Will display rule from from a .txt file (also must create one)
- /sayrules 2 : Display rule 2 from that .txt file ..
etc
If you use for example "/sayrules 16" and not exists rule 16 on .txt file,
will display "This rule not exists"
This commands you must use in chat !

* Admin Commands
- amx_forceread <name | @CT/@T/@ALL >- force player(s) from server to read rules
- amx_addrule < rule > - add a new server rule


* Cvars:
- sayrules_type (default 1)

^ 1 = print_chat
^ 2 = print_center
^ 3 = show motd

* Install :
1) Enable Plugin
2) Create a new file on your "addons\amxmodx\configs\" folder, with name "sayrules.txt"
In that file add your server rules
Remember if you choose sayrules_type 3 will display a motd, so you will design "sayrules.txt" in HTML Style


* Credits :
Thanks to Fatalis for help me with a lot of codes
Avalanche for tell me where is a simple bug on plugin
BlackRose for helping me with write file on amx_addrule command

* [UPDATE] 0.2 -> 0.3 (10/02/2007);

- Added a new command "amx_addrule" <rule> for posibility to add a new rule when you are on server.


* [UPDATE] 0.1 -> 0.2
- Added new comand to force an player from server to read server rules
Command : amx_forceread <name>


* That's all
Attached Files
File Type: sma Get Plugin or Get Source (sayrules.sma - 13227 views - 5.8 KB)

Last edited by SAMURAI16; 03-09-2007 at 15:24.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16