Problems whit accounts! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problems whit accounts! (
/showthread.php?tid=410606)
Problems whit accounts! -
edzis84 - 26.01.2013
Hello, i have problem with account saving, everything works cool but sometmes when i make new account stats are same as my account. For example i make new account and it have admin level 10.
How to fix this? im using Y_ini
Re: Problems whit accounts! -
Threshold - 26.01.2013
Make sure you are resetting the player's stats to 0 under OnPlayerConnect.
Example:
pawn Код:
public OnPlayerConnect(playerid)
{
PlayerInfo[playerid][AdminLevel] = 0;
PlayerInfo[playerid][Cash] = 0;
ShowPlayerDialog(playerid, LOGIN_DIALOG,...
//code continues...
return 1;
}