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 ?