Raised This Month: $44 Target: $400
 11% 

Become VIP Plus after 15 days vip flag remove


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 05-21-2022 , 03:47   Become VIP Plus after 15 days vip flag remove
Reply With Quote #1

How to make after player make 1000 kills and player receive flags after 15 days this flag remove or 10 days im choose in ini fail how many days this flag to be remove ? Now not work and flag not remove... This the sma and ini fail
P.S: I use amxbans and sometime not given the flags оr remove i think they contradict. Sorry for English
Attached Files
File Type: sma Get Plugin or Get Source (crx_becomevip.sma - 48 views - 11.7 KB)
File Type: ini BecomeVIP.ini (1.4 KB, 28 views)

Last edited by Ant1Lamer; 05-21-2022 at 03:51.
Ant1Lamer is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-21-2022 , 07:16   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #2

Why not asking the author of this plugin.
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 05-21-2022 , 08:47   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #3

i dont think so he want to help me but will try
This will work ?

PHP Code:
public plugin_end()
{
    
nvault_prune(g_iVault0get_systime() - (86400 15));
    
nvault_close(g_iVault)


Last edited by Ant1Lamer; 05-21-2022 at 08:51.
Ant1Lamer is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-21-2022 , 10:19   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #4

That will delete everything in the vault that is over 15 days old.
__________________
Bugsy is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 05-21-2022 , 12:24   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #5

Yes i know So will work this or is not what i want ?
Ant1Lamer is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-21-2022 , 16:11   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #6

Quote:
Originally Posted by Ant1Lamer View Post
Yes i know So will work this or is not what i want ?
Check this and take example
https://forums.alliedmods.net/showpo...&postcount=117
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 05-21-2022 , 17:08   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #7

Quote:
Originally Posted by Supremache View Post
I check all before post the thread, but cant make
Ant1Lamer is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-21-2022 , 18:52   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #8

Quote:
Originally Posted by Ant1Lamer View Post
I check all before post the thread, but cant make
PHP Code:
nvault_touchvault "STEAM:0:12345" get_systime() + (86400 15) );

//player trying to do something
if ( nvault_lookupvault "STEAM:0:12345" szVal charsmaxszVal ) , iTS ) )
    if ( 
iTS get_systime() ) 
//remove access
         
remove_user_flagsidVIP_flag 
   else
// add access 
         
set_user_flagsidVIP_flag 
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 05-22-2022 at 04:57.
Supremache is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 05-22-2022 , 09:01   Re: Become VIP Plus after 15 days vip flag remove
Reply With Quote #9

Thank you so now how to integrated in this plugin
Ant1Lamer 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 15:33.


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