AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Rules - Easy Editing. (https://forums.alliedmods.net/showthread.php?t=182384)

Enkore 04-09-2012 04:49

Rules - Easy Editing.
 
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.

Backstabnoob 04-09-2012 04:55

Re: Rules - Easy Editing.
 
Awesome mod! Thanks!

kiki33hun 04-09-2012 05:00

Re: Rules - Easy Editing.
 
Good job, this is godlike plugin!

Enkore 04-09-2012 05:06

Re: Rules - Easy Editing.
 
Quote:

Originally Posted by Backstabnoob (Post 1685093)
Awesome mod! Thanks!

Thanks Dude :)

Quote:

Originally Posted by kiki33hun (Post 1685095)
Good job, this is godlike plugin!

Thanks :D

Xalus 04-09-2012 05:43

Re: Rules - Easy Editing.
 
PHP Code:

client_print(idprint_chat"[AMXX] Rules Opened Succesfully."); 

This msg shouldn't show when its disabled.

Enkore 04-09-2012 06:06

Re: Rules - Easy Editing.
 
Quote:

Originally Posted by Xalus (Post 1685108)
PHP Code:

client_print(idprint_chat"[AMXX] Rules Opened Succesfully."); 

This msg shouldn't show when its disabled.

It Won't ?

Devil259 04-09-2012 06:50

Re: Rules - Easy Editing.
 
IMO, this should be posted in Code/Snippets since plugin is very easy.
rules.txt example is useful, but not the plugin.

Napoleon_be 04-09-2012 09:36

Re: Rules - Easy Editing.
 
For me, this is useless..

Isn't this been made before? http://forums.alliedmods.net/showthread.php?t=167474

Arkshine 04-09-2012 10:50

Re: Rules - Easy Editing.
 
Redundant. Unapproved.

krystann 04-09-2012 13:09

Re: Rules - Easy Editing.
 
Very nice plugin :)


All times are GMT -4. The time now is 06:27.

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