Quote:
Originally Posted by swapped
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.
__________________