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 02-11-2012 , 00:05   Re: VIP Manager + API
Reply With Quote #31

Added web tool to the first post.

Read the first post under "Web Tool Setup" on how to use it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 02-11-2012 , 05:24   Re: VIP Manager + API
Reply With Quote #32

Just a suggestion: you could add an option to set VIP flags to players. Something similar to the default AMXx administration system with access flags.
However, it would probably be more tricky - for example, if you set "a" flag to a player for a week and a few days later decide to add "b" flag to the same player for another week then you must make sure that these access flags are deleted accordingly to the time they were set.

I think, such feature would greatly expand the possibilities of this API.
t3hNox is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 02-11-2012 , 06:45   Re: VIP Manager + API
Reply With Quote #33

Quote:
Originally Posted by Exolent[jNr] View Post
Added web tool to the first post.

Read the first post under "Web Tool Setup" on how to use it.

Wonderful Work.
Well done


Appears one error at me : Call to undefined function get_called_class() in /home/user/public_html/Path/_inc/classes/base.php on line 133

Last edited by pepe_thugs; 02-11-2012 at 07:34.
pepe_thugs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-11-2012 , 15:28   Re: VIP Manager + API
Reply With Quote #34

EDIT: Added web tool requirements to first post.

Quote:
Originally Posted by t3hNox View Post
Just a suggestion: you could add an option to set VIP flags to players. Something similar to the default AMXx administration system with access flags.
However, it would probably be more tricky - for example, if you set "a" flag to a player for a week and a few days later decide to add "b" flag to the same player for another week then you must make sure that these access flags are deleted accordingly to the time they were set.

I think, such feature would greatly expand the possibilities of this API.
This would take some time to do.

Would it not be sufficient that the VIP is the one that expires, and not the flags they have?
For example, you give VIP "a" flag to expire, and later give them "b" flag. When expire, VIP loses both flags.

Quote:
Originally Posted by pepe_thugs View Post
Appears one error at me : Call to undefined function get_called_class() in /home/user/public_html/Path/_inc/classes/base.php on line 133
Updated web tool for this specific error.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-11-2012 at 15:35.
Exolent[jNr] is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 02-11-2012 , 17:38   Re: VIP Manager + API
Reply With Quote #35

Quote:
Originally Posted by Exolent[jNr] View Post
Would it not be sufficient that the VIP is the one that expires, and not the flags they have?
For example, you give VIP "a" flag to expire, and later give them "b" flag. When expire, VIP loses both flags.
Well, I thought of a system where players can get different extras (defined by flags) for a certain amount of time. That's why it'd be rather the flags which expire not the whole VIP status.

I understand that such feature would require to rewrite a lot of code, although I believe VIP flags would be a great improvement to this API.

Generally speaking, flags don't have to work as I described, it would be sufficient, as you wrote, that VIPs expire along with all the flags they have.
t3hNox is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 02-12-2012 , 14:51   Re: VIP Manager + API
Reply With Quote #36

I added this features.
It working in player spawn (grenade,flash and smoke) but the command "/vip" (show the vip online)
do not work print the message "No Vips online" .
Attached Files
File Type: sma Get Plugin or Get Source (vip_features.sma - 482 views - 3.4 KB)
pepe_thugs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-12-2012 , 14:53   Re: VIP Manager + API
Reply With Quote #37

PHP Code:
if (is_user_connected(player) && is_user_vip(id)) 
You're mixing variables.

EDIT:

Also, I'm working on an update to support flags, but they will expire all at the same time if the VIP is set to expire.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-12-2012 at 14:53.
Exolent[jNr] is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 02-12-2012 , 15:02   Re: VIP Manager + API
Reply With Quote #38

Quote:
Originally Posted by Exolent[jNr] View Post
PHP Code:
if (is_user_connected(player) && is_user_vip(id)) 
You're mixing variables.

And on Player Spawn the variables is this :
PHP Code:
if (is_user_alive(id) && is_user_vip(id)) 
And is working well
pepe_thugs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-12-2012 , 15:06   Re: VIP Manager + API
Reply With Quote #39

Quote:
Originally Posted by pepe_thugs View Post
And on Player Spawn the variables is this :
PHP Code:
if (is_user_alive(id) && is_user_vip(id)) 
And is working well
You don't understand. In that online check, you are looking for connected players, and checking if the person that said /vip is a VIP, not if those connected players are VIPs.
So if you are a VIP and type /vip, it will say everyone is a VIP because all players will pass that check because you are only checking if YOU are a VIP instead of those players.
__________________
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-12-2012 , 15:35   Re: VIP Manager + API
Reply With Quote #40

Quote:
Originally Posted by Exolent[jNr] View Post
So if you are a VIP and type /vip, it will say everyone is a VIP because all players will pass that check because you are only checking if YOU are a VIP instead of those players.
But the problem is the message that appears is "No Vip online" he don't say the all players is a VIP.


And i adding more features and do not work.
Sorry my complication.
Attached Files
File Type: sma Get Plugin or Get Source (vip_bulletdamage.sma - 463 views - 720 Bytes)
File Type: sma Get Plugin or Get Source (vip_chat_tag.sma - 510 views - 1.4 KB)
pepe_thugs is offline
Reply


Thread Tools
Display Modes

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 21:32.


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