Raised This Month: $32 Target: $400
 8% 

VIP Manager + API


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-28-2012 , 15:32   Re: VIP Manager + API
Reply With Quote #21

Quote:
Originally Posted by Dabb View Post
can you add more features ?
This doesn't give a VIP any features.
It is a more advanced way to manage VIPs other than an admin flag.
Other plugins will use the API and give VIPs their features.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
r14170
Veteran Member
Join Date: Dec 2009
Old 01-31-2012 , 08:00   Re: VIP Manager + API
Reply With Quote #22

cool one.
r14170 is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 02-07-2012 , 00:17   Re: VIP Manager + API
Reply With Quote #23

WoW last year i worked it for 7days and made stupid shi**. So this is why i talking about ) GJ
Shadymn is offline
RoaR
Member
Join Date: Dec 2011
Old 02-07-2012 , 04:39   Re: VIP Manager + API
Reply With Quote #24

I just have no comment. GREAT JOB BRO!
RoaR is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 02-09-2012 , 16:12   Re: VIP Manager + API
Reply With Quote #25

Good Job Exolent.
But i have two problems.
The first is the code create a new file .ini with name configsvip_user.ini and in wrong way.
I put the vip_user.ini file in configs directory and he created the file in amxmodx directory.
And the second is i use the AMXBans and i loaded admins with sql table.
When i use this plugin i just have to load admins with users.ini file ???
pepe_thugs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-09-2012 , 16:16   Re: VIP Manager + API
Reply With Quote #26

Quote:
Originally Posted by pepe_thugs View Post
The first is the code create a new file .ini with name configsvip_user.ini and in wrong way.
I put the vip_user.ini file in configs directory and he created the file in amxmodx directory.
Ah, I see. Code has been fixed.

Quote:
Originally Posted by pepe_thugs View Post
And the second is i use the AMXBans and i loaded admins with sql table.
When i use this plugin i just have to load admins with users.ini file ???
No. You can use the SQL database if you prefer.
This has nothing to do with admins, except for admin flag support.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-09-2012 , 16:59   Re: VIP Manager + API
Reply With Quote #28

I will do some testing tonight and possibly write up a PHP script for managing VIPs in SQL.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-09-2012 , 19:20   Re: VIP Manager + API
Reply With Quote #29

Updated to v0.0.3:

Quote:
Originally Posted by Exolent[jNr] View Post
Changelog:
0.0.3
  • Fixed SQL connection and loading users from SQL
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 02-10-2012 , 08:07   Re: VIP Manager + API
Reply With Quote #30

Quote:
Originally Posted by Exolent[jNr] View Post
I will do some testing tonight and possibly write up a PHP script for managing VIPs in SQL.
Thanks Exolent.
I think it is more easy get the script the AMXBans and give a small edit.


Quote:
Originally Posted by Exolent[jNr] View Post

Fixed SQL connection and loading users from SQL

This is very usefull to servers, and help the Admins to pay servers.
And help to donate for your work.



Small Request: Exolent you can add the structs to table sql? please

Last edited by pepe_thugs; 02-10-2012 at 08:25.
pepe_thugs is offline
Reply



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 04:09.


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