Raised This Month: $ Target: $400
 0% 

motd prints all playing players in rows


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TheBladerX
Member
Join Date: Dec 2012
Location: Slovakia
Old 02-05-2019 , 07:45   motd prints all playing players in rows
Reply With Quote #1

Hello, what am I missing here? I would like to print all players into motd, this is the code:

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

new player_name[33][64];
new g_maxplayers;

public plugin_init() {
	register_clcmd("say /hraci", "player_skills");
	g_maxplayers = get_maxplayers();
}

public client_connect(id)
{
	get_user_name(id, player_name[id], 63);
}	
	
public player_skills(id){
		
	new message[2048]
	new formats[128]

	add(message,2047,"<HTML><head></head><body bgcolor=#000000><font color=#FFB000>")

	for (id=1; id<=g_maxplayers; id++) {
		format(formats, 127, "%s",  player_name[id])
	}
	return PLUGIN_HANDLED
}
TheBladerX is offline
 



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 07:30.


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