Raised This Month: $ Target: $400
 0% 

Fvault code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-16-2013 , 10:21   Re: Fvault code
Reply With Quote #1

I suggest you using mysql.
Podarok is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 04-16-2013 , 10:28   Re: Fvault code
Reply With Quote #2

I Solved it

i did it with fVault becuse that was easier

Edit: here is the code if anyone needs it
Code:
/*
CODE FROM JUMPSTATS BY EXOLENT EDIT IRONSKILLZ1(SNUSMUMRIKEN)
*/
#include <amxmodx>
#include <fvault>
new cvar_save_prune;
new const g_agree_vault[] = "hello";
new bool:g_agreed[33];
public plugin_init()
{
 
 cvar_save_prune = register_cvar("js_save_prune", "1");  // 1 day
 register_clcmd( "say /hello", "Hello" ); 
  
 Check()
 
}
public Hello(client)
{
 static authid[35];
 get_user_authid(client, authid, sizeof(authid) - 1);
 
 g_agreed[client] = true;
 
 fvault_set_data(g_agree_vault, authid, "1");
}

public client_authorized(client)
{
 if( !is_user_bot(client) )
 {
  static authid[35];
  get_user_authid(client, authid, sizeof(authid) - 1);
  
  if( fvault_get_keynum(g_agree_vault, authid) == -1 )
  {
   g_agreed[client] = false;
  }
  else
  {
   g_agreed[client] = true;
   
  }
 }
}
public Check()
{
 static bool:bAlreadyExecuted;
 if( !bAlreadyExecuted )
 {
  new iDays = get_pcvar_num( cvar_save_prune );
  if( iDays )
  {
   fvault_prune( g_agree_vault, _, get_systime( ) - ( iDays * 60 * 60 ) );
  }
  
  bAlreadyExecuted = true;
 }
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 04-16-2013 at 11:11.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
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 10:51.


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