Raised This Month: $ Target: $400
 0% 

Multipul motd Windows


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
owenmelbz
Member
Join Date: Dec 2005
Old 04-21-2006 , 12:16   Multipul motd Windows
Reply With Quote #1

Well I Got This But Its Not working You Type Ingame Commands And They Still Come Up Normaly and Nothing Else Happens, It Loads Fine With Debug and Without.

If you couldnt guess what its suposed todo.

You type in chat for instance /admins and it opens a motd window displaying admins.txt which is in html format. it also needs to work with amxx 1.01 =/

the code i got is

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

#define PLUGIN	"Flux TSRP Job Menu"
#define VERSION	"1"
#define AUTHOR	"MelonZ"

 
public plugin_init() 
{
	register_plugin("Flux TSRP Job Menu","1","MelonZ")
	register_clcmd("say /bloodz","bloodz")
	register_clcmd("say_team /bloodz","bloodz")
        register_clcmd("say /mafia","mafia")
        register_clcmd("say_team /mafia","mafia")
	register_clcmd("say /mob","mob")
	register_clcmd("say_team /mob","mob")
	register_clcmd("say /mcmd","mcmd")
	register_clcmd("say_team /mcmd","mcmd")
        register_clcmd("say /mcpd","mcpd")
        register_clcmd("say_team /mcpd","mcpd")
        register_clcmd("say /marine","marine")
        register_clcmd("say_team /marine","marine")
	register_clcmd("say /rphelp","rphelp")
	register_clcmd("say_team /rphelp","rphelp")
	register_clcmd("say /panda","panda")
	register_clcmd("say_team /panda","panda")
	register_clcmd("say /sa","sa")
	register_clcmd("say_team /sa","sa")
	register_clcmd("say /yakuza","yakuza")
	register_clcmd("say_team /yakuza","yakuza")
	register_clcmd("say_team /admins","admins")
	register_clcmd("say /admins","admins")
	register_cvar("Advertise","90") 
        set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b") 
}

public bloodz(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/bloodz.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mafia(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/mafia.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mob(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/mob.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mcmd(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/mcmd.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mcpd(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/mcpd.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public marine(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/marine.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public rphelp(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/rphelp.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public panda(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/panda.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public sa(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/sa.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public yakuza(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/yakuza.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public samurai(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/samurai.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public admins(id,level,cid)
{
	new configsdir[200]
	new MOTDfile[200]
	
	get_configsdir(configsdir,199)
	format(MOTDfile,199,"%s/admins.txt",configsdir)
	
	show_motd(id,MOTDfile)
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public advertise()
{
	client_print(0,print_chat,"say /rphelp to view avaliable descriptions commands.")
	return PLUGIN_HANDLED
}
anyone know why its not working ?
owenmelbz is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-21-2006 , 22:42  
Reply With Quote #2

Try increasing the length of the MOTDfile variable.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
owenmelbz
Member
Join Date: Dec 2005
Old 04-21-2006 , 22:44  
Reply With Quote #3

weeee tht means nothing to me !!!!!!

i got a different one now which is also not workin

Code:
#include <amxmodx>
#include <amxmisc>
#include <dbi>
#include <tsx>
#include <engine>
#include <engine_stocks>
#include <fun>
#include <tsxaddon>

#define PLUGIN	"Flux_TSRP_Job_Menu"
#define VERSION	"1"
#define AUTHOR	"MelonZ"
 
public plugin_init() 
{
	register_plugin("Flux_TSRP_Job_Menu","beta2","MelonZ")

	register_clcmd("say /bloodz","bloodz", 0, "Opens MOTD Window With Job Info")
        register_clcmd("say /mafia","mafia", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /mob","mob", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /mcmd","mcmd", 0, "Opens MOTD Window With Job Info")
        register_clcmd("say /mcpd","mcpd", 0, "Opens MOTD Window With Job Info")
        register_clcmd("say /marine","marine", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /rphelp","rphelp", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /panda","panda", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /sa","sa", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /yakuza","yakuza", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /admins","admins", 0, "Opens MOTD Window With Job Info")
	register_cvar("Advertise","90") 

        set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b") 
}

public bloodz(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/bloodz.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mafia(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/mafia.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mob(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/mob.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mcmd(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/mcmd.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mcpd(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/mcpd.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public marine(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/marine.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public rphelp(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/rphelp.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public panda(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/panda.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public sa(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/sa.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public yakuza(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/yakuza.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public samurai(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/samurai.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public admins(id)
{
	show_motd(id,"addons/amxmodx/config/jobmenu/admins.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public advertise()
{
	client_print(0,print_chat,"say /rphelp to view avaliable descriptions commands.")
	return PLUGIN_HANDLED
}
what about tht why dsnt tht work
owenmelbz is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-21-2006 , 22:49  
Reply With Quote #4

1) It's "configs", not "config" in the directory path.
2) These modules are not needed in your case:
Code:
#include <dbi> #include <tsx> #include <engine> #include <engine_stocks> #include <fun> #include <tsxaddon>
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
owenmelbz
Member
Join Date: Dec 2005
Old 04-21-2006 , 22:57  
Reply With Quote #5

ty for the help but its still not working i type /rphelp or /panda or anything and it just says /panda in normal say =/ im guessing the clcmd isnt working or what

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

#define PLUGIN	"Flux_TSRP_Job_Menu"
#define VERSION	"1"
#define AUTHOR	"MelonZ"
 
public plugin_init() 
{
	register_plugin("Flux_TSRP_Job_Menu","beta2","MelonZ")

	register_clcmd("say /bloodz","bloodz", 0, "Opens MOTD Window With Job Info")
        register_clcmd("say /mafia","mafia", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /mob","mob", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /mcmd","mcmd", 0, "Opens MOTD Window With Job Info")
        register_clcmd("say /mcpd","mcpd", 0, "Opens MOTD Window With Job Info")
        register_clcmd("say /marine","marine", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /rphelp","rphelp", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /panda","panda", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /sa","sa", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /yakuza","yakuza", 0, "Opens MOTD Window With Job Info")
	register_clcmd("say /admins","admins", 0, "Opens MOTD Window With Job Info")
	register_cvar("Advertise","90") 

        set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b") 
}

public bloodz(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/bloodz.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mafia(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/mafia.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mob(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/mob.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mcmd(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/mcmd.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public mcpd(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/mcpd.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public marine(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/marine.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public rphelp(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/rphelp.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public panda(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/panda.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public sa(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/sa.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public yakuza(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/yakuza.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public samurai(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/samurai.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public admins(id)
{
	show_motd(id,"addons/amxmodx/configs/jobmenu/admins.txt")
	client_print(id,print_chat,"Thank you!")
	
	return PLUGIN_HANDLED
}

public advertise()
{
	client_print(0,print_chat,"say /rphelp to view avaliable descriptions commands.")
	return PLUGIN_HANDLED
}
owenmelbz is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-21-2006 , 23:02  
Reply With Quote #6

Then it's not installed properly ...
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
owenmelbz
Member
Join Date: Dec 2005
Old 04-21-2006 , 23:03  
Reply With Quote #7

what isnt installed properly ?

im running the server with 7 other plugins tht use the register bit and they all working fine. is a Harbu_Talkarea.amxx effecting it u think ??
owenmelbz is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 04-21-2006 , 23:09  
Reply With Quote #8

Quote:
amxx 1.01
Dunno how to help you for that, but you can try this - basically just your code without the descriptions in it - works flawlessly for me but I don't use outdated versions =\

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN   "Flux_TSRP_Job_Menu" #define VERSION   "1" #define AUTHOR   "MelonZ"   public plugin_init() {     register_plugin("Flux_TSRP_Job_Menu","beta2","MelonZ")     register_clcmd("say /bloodz", "bloodz", 0)     register_clcmd("say /mafia", "mafia", 0)     register_clcmd("say /mob", "mob", 0)     register_clcmd("say /mcmd", "mcmd", 0)     register_clcmd("say /mcpd", "mcpd", 0)     register_clcmd("say /marine", "marine", 0)     register_clcmd("say /rphelp", "rphelp", 0)     register_clcmd("say /panda", "panda", 0)     register_clcmd("say /sa", "sa", 0)     register_clcmd("say /yakuza", "yakuza", 0)     register_clcmd("say /admins", "admins", 0)     register_cvar("Advertise", "90")     set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b") } public bloodz(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/bloodz.txt")     client_print(id, print_chat, "Thank you!")         return PLUGIN_HANDLED } public mafia(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/mafia.txt")     client_print(id, print_chat, "Thank you!")         return PLUGIN_HANDLED } public mob(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/mob.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public mcmd(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/mcmd.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public mcpd(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/mcpd.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public marine(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/marine.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public rphelp(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/rphelp.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public panda(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/panda.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public sa(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/sa.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public yakuza(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/yakuza.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public samurai(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/samurai.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public admins(id) {     show_motd(id, "addons/amxmodx/configs/jobmenu/admins.txt")     client_print(id, print_chat, "Thank you!")     return PLUGIN_HANDLED } public advertise() {     client_print(0, print_chat, "say /rphelp to view avaliable descriptions commands.")     return PLUGIN_HANDLED }
Jordan is offline
owenmelbz
Member
Join Date: Dec 2005
Old 04-21-2006 , 23:11  
Reply With Quote #9

lol i need to use the old amxx for Harbus RP Plugin as Remo didnt make it for mecklenburg_final only v8b5 i think so unless ur willing to upgrade it from 1.01 to 1.71 feel free too !
owenmelbz is offline
owenmelbz
Member
Join Date: Dec 2005
Old 04-21-2006 , 23:44  
Reply With Quote #10

well in incorporated it into HarbuAlpha.amxx and it worked lol.. strange thing.

any1 know how to unprecache models ! i only need to free up 2 !!!
owenmelbz 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 05:03.


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