|
Member
Join Date: Dec 2012
Location: Slovakia
|
02-05-2019
, 17:09
Re: motd prints all playing players in rows
|
#13
|
None of these you all sent worked properly. Unfortunately, I do not use amxmodx 1.9, however I still have 1.8.2.
edit:
sorry, this one worked.
Quote:
Originally Posted by thEsp
This works somewhat
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc>
#define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /allplayers","ShowMOTD") }
public ShowMOTD(id) { new iPlayers = get_playersnum() new msgmotd[2048] for (new i = 0;i<=iPlayers;i++) { new id_name[32] get_user_name(i,id_name,charsmax(id_name)) new htmlcode[256] formatex(htmlcode,charsmax(htmlcode),"<HTML><head></head><body bgcolor=#000000>%s<font color=#FFB000>",id_name) add(msgmotd,charsmax(msgmotd),htmlcode) } show_motd(id,msgmotd,"Test") }
|
Thanks.
Last edited by TheBladerX; 02-05-2019 at 17:26.
|
|
|
|