Raised This Month: $ Target: $400
 0% 

How would I do this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
owned
Member
Join Date: Jul 2007
Old 08-02-2007 , 22:36   How would I do this?
Reply With Quote #1

I want to register a client command so when they "say /maplist" it opens the MOTD and displays a webpage with our map list.
__________________
MARREC/OWNED = me.
owned is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-03-2007 , 04:01   Re: How would I do this?
Reply With Quote #2

Place a txt file with thename of maplist_txt.txt into your amxx configs folder. and design the page

Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "maplist motd"
#define VERSION "1.0"
#define AUTHOR "sav"

public plugin_init() {
 register_plugin(PLUGIN, VERSION, AUTHOR)
 register_clcmd("say /maplist","maplist",ADMIN_USER,"Shows motd for maplists")  
 
}
public maplist(id)
{
 show_motd(id, "addons\amxmodx\configs\maplist_txt.txt")
 return 1;
}
Doc-Holiday is offline
Old 08-03-2007, 04:02
Doc-Holiday
This message has been deleted by Doc-Holiday.
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-03-2007 , 04:06   Re: How would I do this?
Reply With Quote #3

This one has a function that is called when any one types map
it will say

[AMXX] Type /maplist for a list of maps on this server

to who ever says map
Attached Files
File Type: sma Get Plugin or Get Source (maplist_motd.sma - 154 views - 822 Bytes)
Doc-Holiday is offline
Reply



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 16:24.


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