Quote:
Originally Posted by Exolent[jNr]
Ah, I see. Code has been fixed..
|
Sorry i don't knowed.
Quote:
Originally Posted by Exolent[jNr]
No. You can use the SQL database if you prefer.
This has nothing to do with admins, except for admin flag support.
|
I think not explained myself well
I added this feature.
One example :
PHP Code:
public plugin_init() {
register_clcmd("say /vip", "ShowVipsOnline", -1, "Show Vips Online");
}
public ShowVipsOnline(id)
{
new message[256], name[32], count = 0;
new len = format(message, charsmax(message), "[Vips]: ");
for (new player = 1; player <= maxPlayers; ++player)
{
if (is_user_connected(player) && is_user_vip(id))
{
if (len > 96)
{
client_print(id, print_chat, "%s,", message);
len = format(message, charsmax(message), "");
}
get_user_name(player, name, charsmax(name));
if (count && len)
{
len += format(message[len], 255 - len, ", ");
}
len += format(message[len], 255 - len, "%s", name);
++count;
}
}
if (len)
{
if (!count)
{
len += format(message[len], 255 - len, "No [Vips] online.");
}
client_print(id, print_chat, "%s", message);
}
return PLUGIN_HANDLED;
}
And it not work because the flags is not added in AMXBans.
It added in vip_user.ini or sql, but don't work when i say "/vip" appears the message "No [Vips] online."
I say a little suggestion for those who use sql.
I think it was not bad little php page with the players added.
Small Suggestion : A small php script to a webpage with people who are added to vip.