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

Rules - Easy Editing.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 18:34.


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