AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Become VIP Plus after 15 days vip flag remove (https://forums.alliedmods.net/showthread.php?t=337855)

Ant1Lamer 05-21-2022 02:47

Become VIP Plus after 15 days vip flag remove
 
2 Attachment(s)
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

Supremache 05-21-2022 06:16

Re: Become VIP Plus after 15 days vip flag remove
 
Why not asking the author of this plugin.

Ant1Lamer 05-21-2022 07:47

Re: Become VIP Plus after 15 days vip flag remove
 
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)



Bugsy 05-21-2022 09:19

Re: Become VIP Plus after 15 days vip flag remove
 
That will delete everything in the vault that is over 15 days old.

Ant1Lamer 05-21-2022 11:24

Re: Become VIP Plus after 15 days vip flag remove
 
Yes i know So will work this or is not what i want ?

Supremache 05-21-2022 15:11

Re: Become VIP Plus after 15 days vip flag remove
 
Quote:

Originally Posted by Ant1Lamer (Post 2779877)
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

Ant1Lamer 05-21-2022 16:08

Re: Become VIP Plus after 15 days vip flag remove
 
Quote:

Originally Posted by Supremache (Post 2779889)

I check all before post the thread, but cant make :(

Supremache 05-21-2022 17:52

Re: Become VIP Plus after 15 days vip flag remove
 
Quote:

Originally Posted by Ant1Lamer (Post 2779894)
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 


Ant1Lamer 05-22-2022 08:01

Re: Become VIP Plus after 15 days vip flag remove
 
Thank you so now how to integrated in this plugin


All times are GMT -4. The time now is 15:59.

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