Here :
Code:
#include <amxmodx>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "emoD"
#define MIN_PLAYERS 10
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public client_putinserver(id)
{
static Players[32], Num;
get_players(Players, Num, "ch");
if(Num < MIN_PLAYERS)
{
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 5.0, 0.1, 0.1, -1);
show_hudmessage(id, "! Waiting for other players...");
}
else if(Num > MIN_PLAYERS)
{
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 5.0, 0.1, 0.1, -1);
show_hudmessage(id, "! Too many players on server...");
}
else if(Num == MIN_PLAYERS)
{
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 5.0, 0.1, 0.1, -1);
show_hudmessage(id, "! Enough players has joined.Match started...");
}
}
__________________