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

Very Simple combination of motd commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
N0th
Junior Member
Join Date: Sep 2017
Old 09-03-2017 , 15:48   Very Simple combination of motd commands
Reply With Quote #1

Hey guys, I tried to do this but i am almost done, but still something missing.
I have a motd showing up with a html page when i say /topak47 or /topm4a1
Anyway, I made this work only with having more plugins , but how i can make just one plugin with all motd commands?
For example, for /topawp the code is:
Code:
/* Plugin generated by AMXX */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "TOPURI RED"
#define VERSION "1.0"
#define AUTHOR "Avaray"

public plugin_init() {
	register_plugin("TOP Awp (motd)","1.1","Avaray")
	register_clcmd ("say /topawp" , "topawp" , -1);
	register_clcmd ("say_team /topawp" , "topawp" , -1);
}
public topawp(id) show_motd(id,"/addons/amxmodx/configs/topawp.html")
And for /topknife is
Code:
/* Plugin generated by AMXX */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "TOPURI RED"
#define VERSION "1.0"
#define AUTHOR "Avaray"

public plugin_init() {
	register_plugin("TOP Knife (motd)","1.1","Avaray")
	register_clcmd ("say /topknife" , "topknife" , -1);
	register_clcmd ("say_team /topknife" , "topknife" , -1);
}
public topknife(id) show_motd(id,"/addons/amxmodx/configs/topknife.html")
But how can i mix them in only one .sma and make just one plugin that contains all the /top's ?

Last edited by N0th; 09-03-2017 at 15:48.
N0th is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-03-2017 , 18:07   Re: Very Simple combination of motd commands
Reply With Quote #2

Code:
/* Plugin generated by AMXX */ #include <amxmodx> #include <amxmisc> #define PLUGIN "TOPURI RED" #define VERSION "1.0" #define AUTHOR "Avaray" public plugin_init() {     register_plugin("TOP Awp (motd)","1.1","Avaray")     register_clcmd ("say /topawp" , "topawp" , -1);     register_clcmd ("say_team /topawp" , "topawp" , -1);     register_clcmd ("say /topknife" , "topknife" , -1);     register_clcmd ("say_team /topknife" , "topknife" , -1); } public topawp(id) show_motd(id,"/addons/amxmodx/configs/topawp.html") public topknife(id) show_motd(id,"/addons/amxmodx/configs/topknife.html")
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
N0th
Junior Member
Join Date: Sep 2017
Old 09-04-2017 , 04:33   Re: Very Simple combination of motd commands
Reply With Quote #3

Thanks man,works great.
N0th 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 02:47.


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