07.04.2012, 00:39
Just do this...
Now, the first time everyone connects, their level will be reset to 0.
pawn Код:
public OnPlayerConnect(playerid)
{
new string[32], name[24];
GetPlayerName(playerid, name, 24);
format(string,sizeof(string), "%s.ini", name); // You will need to change this to your accounts
if(dini_Exists(string) && dini_Int(string, "Updated") != 1)
{
dini_IntSet(string, "Level", 0);
dini_IntSet(string, "Updated", 1);
}
return 1;
}