View Single Post
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 05-03-2014 , 01:00   Re: nvault : when i change name problem
Reply With Quote #4

Quote:
Originally Posted by swapped View Post
I know but, i wanna create a cvar for save type, name - ip - steam, so , solution ?
See .. Firstly dont support Saving anything by Name/IP here because that only points to the direction of non steam .. MOST OF THE TIMES!
Assuming the positive intentions .. I ll try to solve your issue (I am not really sure it will work or not but worth a try)

First Way :

Only time you load and save data is connect and disconnect..

PHP Code:
public client_connect(id
{  
        
LoadData(id);             

public 
client_disconnect(id
{  
        
SaveData(id); 

Try to consider the client_infochanged() function which is triggered when player changes name..
Save the data instantly and load the data with a set_task for delay see if it works...

Second Way :

Disable Name change atleast it will stop XP loss.

Best Way :
Stick to Steam ID.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline