Raised This Month: $ Target: $400
 0% 

Basic rules plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 10-08-2009 , 17:58   Re: Basic rules plugin
Reply With Quote #2

Nevermind guys, I got it working, my code so far is:

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Jailbreak Rules"
#define VERSION "1.0"
#define AUTHOR "OneMoreLevel"

new const message[] =
{
"here are the rules"
}
new const 
header[] =
{
"This is a header"
}

public 
plugin_init() {
    
register_plugin("Jailbreak Rules""1.0""OneMoreLevel")
    
    
register_clcmd ("say /rules""jbrules"0"Show the rules")
}
public 
jbrules(id)
{    
    
show_motd(idmessageheader

But I still have this question:
How can I make it so that when A person has a text file in the same folder as there motd.txt file is, and that file is named "rules.txt", it reads from that file to put it in the motd.
__________________
60/100 60%
[||||||||||||||||||||]
Project: Warfighter mod
Blog:
http://sites.google.com/site/dailymultitasker/
PHP Code:
   if ( i_help_you "Yes" ) == )
    
set_user_karma(onemorelevel,add,+1
OneMoreLevel 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 22:33.


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