View Single Post
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 02-09-2012 , 16:50   Re: VIP Manager + API
Reply With Quote #27

Quote:
Originally Posted by Exolent[jNr] View Post
Ah, I see. Code has been fixed..
Sorry i don't knowed.


Quote:
Originally Posted by Exolent[jNr] View Post
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(messagecharsmax(message), "[Vips]: ");
 
 for (new 
player 1player <= maxPlayers; ++player)
 {
  if (
is_user_connected(player) && is_user_vip(id))
  {
   if (
len 96
   {
    
client_print(idprint_chat"%s,"message);
    
len format(messagecharsmax(message), "");
   }
   
   
get_user_name(playernamecharsmax(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(idprint_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.
pepe_thugs is offline