Editing ALL registered users at once.
#10

Just do this...
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;
}
Now, the first time everyone connects, their level will be reset to 0.
Reply


Messages In This Thread
Editing ALL registered users at once. - by Deathh - 07.04.2012, 00:01
Re: Editing ALL registered users at once. - by [HiC]TheKiller - 07.04.2012, 00:16
Re: Editing ALL registered users at once. - by Deathh - 07.04.2012, 00:20
Re: Editing ALL registered users at once. - by [HiC]TheKiller - 07.04.2012, 00:26
Re: Editing ALL registered users at once. - by Deathh - 07.04.2012, 00:29
Re: Editing ALL registered users at once. - by [HiC]TheKiller - 07.04.2012, 00:32
Re: Editing ALL registered users at once. - by Deathh - 07.04.2012, 00:34
Respuesta: Editing ALL registered users at once. - by aNdReSk - 07.04.2012, 00:35
Re: Editing ALL registered users at once. - by Kar - 07.04.2012, 00:35
Re: Editing ALL registered users at once. - by Catalyst- - 07.04.2012, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)