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

show_motd_port


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
karagodov
New Member
Join Date: May 2005
Old 05-24-2005 , 06:02   show_motd_port
Reply With Quote #1

show custom message (includes www pages etc.) in motd window.

usage: rcon %userid% %text% %title%
rcon 0 %text% %title% will show message for all players

usefull for hlstats e.g.

Code:
#include <amxmodx>

public plugin_init() {
	register_plugin("smp", "1.0", "")
	register_srvcmd("smp","smp",0,"")
}

public smp() {
	new id [10]
	new url [255]
	new title [64]

	read_argv(1,id,10)
	read_argv(2,url,255)
	read_argv(3,title,64)

	if (!str_to_num(id))
	{
		show_motd(0,url,title)
		return PLUGIN_HANDLED
	}

	new index=find_player("k",str_to_num(id))
	if (index) show_motd(index,url,title)
        return PLUGIN_HANDLED
}
Attached Files
File Type: sma Get Plugin or Get Source (smp.sma - 962 views - 462 Bytes)
karagodov is offline
Send a message via ICQ to karagodov
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-14-2005 , 13:33  
Reply With Quote #2

Choose a category. Old. Moved to Unapproved/Old Plugins forum.
__________________
twistedeuphoria 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 15:57.


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