Raised This Month: $12 Target: $400
 3% 

Rules - Easy Editing.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development       
Enkore
Junior Member
Join Date: Dec 2011
Old 04-09-2012 , 04:49   Rules - Easy Editing.
Reply With Quote #1

I Saw That many people doing such a big thing because of the "Rules.txt" \ Motd
So i just thought about releasing easy version to editing.
just follow my lead.

Quote:
// Cvar : amx_rules_enabled
Enable : 1
Disable : 0
Default : 1

Rules.sma
PHP Code:
#include < amxmodx >

new gpCvar;

public 
plugin_init() {
    
register_plugin("Easy Rules""1.0""Cover Aka Enkore");
    
gpCvar register_cvar("amx_rules_enabled""1");
    
register_clcmd("say /rules""rules");
    
register_clcmd("say_team /rules""rules");
}

public 
rules(id)
{
    if(
get_pcvar_numgpCvar ))
    
show_motd(id"rules.txt""Rules");
    
client_print(idprint_chat"[AMXX] Rules Opened Succesfully.");

Now For Who Don't Know HTML : rules.txt
HTML Code:
<html>

<head>
<h1><b><center> [Server Name] Rules </h1></b></center>
<hr>
</head>

<body bgcolor="black">
<font color="white" size="3">
<center>
<b>
1. Rule
<br>
2. Rule
<br>
3. Rule
<br>
4. Rule
<br>
5. Rule
<br>
6. Rule
<br>
7. Rule
<br>
8. ...
<br>
9. ...
<br>
10. ...
<hr>
</font>
<font size="2" color="white"> All Rights Reserved To Cover Aka Enkore </font>
</b></center></body>
</html>
Enjoy, Cover Aka Enkore.

Last edited by Enkore; 04-09-2012 at 05:05.
Enkore is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 04-09-2012 , 04:55   Re: Rules - Easy Editing.
Reply With Quote #2

Awesome mod! Thanks!
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 04-09-2012 , 05:00   Re: Rules - Easy Editing.
Reply With Quote #3

Good job, this is godlike plugin!
__________________
kiki33hun is offline
Enkore
Junior Member
Join Date: Dec 2011
Old 04-09-2012 , 05:06   Re: Rules - Easy Editing.
Reply With Quote #4

Quote:
Originally Posted by Backstabnoob View Post
Awesome mod! Thanks!
Thanks Dude

Quote:
Originally Posted by kiki33hun View Post
Good job, this is godlike plugin!
Thanks
Enkore is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-09-2012 , 05:43   Re: Rules - Easy Editing.
Reply With Quote #5

PHP Code:
client_print(idprint_chat"[AMXX] Rules Opened Succesfully."); 
This msg shouldn't show when its disabled.
__________________
Retired.
Xalus is offline
Enkore
Junior Member
Join Date: Dec 2011
Old 04-09-2012 , 06:06   Re: Rules - Easy Editing.
Reply With Quote #6

Quote:
Originally Posted by Xalus View Post
PHP Code:
client_print(idprint_chat"[AMXX] Rules Opened Succesfully."); 
This msg shouldn't show when its disabled.
It Won't ?
Enkore is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 04-09-2012 , 06:50   Re: Rules - Easy Editing.
Reply With Quote #7

IMO, this should be posted in Code/Snippets since plugin is very easy.
rules.txt example is useful, but not the plugin.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-09-2012 , 09:36   Re: Rules - Easy Editing.
Reply With Quote #8

For me, this is useless..

Isn't this been made before? http://forums.alliedmods.net/showthread.php?t=167474
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-09-2012 , 10:50   Re: Rules - Easy Editing.
Reply With Quote #9

Redundant. Unapproved.
__________________
Arkshine is offline
krystann
Junior Member
Join Date: Mar 2012
Location: Romania - Cluj
Old 04-09-2012 , 13:09   Re: Rules - Easy Editing.
Reply With Quote #10

Very nice plugin
krystann 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 20:11.


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