Raised This Month: $ Target: $400
 0% 

make xp start all over


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dark Kingdom
BANNED
Join Date: Apr 2007
Location: VT
Old 04-14-2007 , 15:53   Re: make xp start all over
Reply With Quote #9

flyeni try this:

PHP Code:
public LoadXP(id)
{
    new 
authid[32]; 
    
get_user_authid(id,authid,31); 
    
    new 
vaultkey[64], vaultdata[64]; 
    
    
format(vaultkey,63,"ANIMAL-%s-class",authid); 
    
get_vaultdata(vaultkey,vaultdata,63); 
    
PlayerClass[id] = str_to_num(vaultdata); 
    
    
format(vaultkey,63,"ANIMAL-%s-xp",authid); 
    
get_vaultdata(vaultkey,vaultdata,63); 
    
PlayerXP[id] = str_to_num(vaultdata);   
    
    
format(vaultkey,63,"ANIMAL-%s-level",authid); 
    
get_vaultdata(vaultkey,vaultdata,63);
    
PlayerLevel[id] = str_to_num(vaultdata);  
}  

public 
client_connect(id)
{
    if(
get_cvar_num("SaveXP") == 1) {
        
        
LoadXP(id)
        
        
client_print(idprint_chat"[Animal Mod] XP Loaded!")
        
client_print(idprint_chat"[Animal Mod] You are a %s with level %s and %s XP"PlayerClass[id], PlayerLevel[id], PlayerXP[id])
    }  
    
    public 
client_disconnect(id)
    {
        
SaveXP(id)
    }

Dark Kingdom is offline
 



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 06:35.


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