Jump to content
  • 0

Sistem de salvare(backup)


KiDo

Question

4 answers to this question

Recommended Posts

Adauga in gm-u tau :

forward SaveAccounts();

la ongamemodeinit

accountstimer = SetTimer("SaveAccounts", 1800000, 1); // se salveaza din 30 in 30 de minute conturile.

[pawn]public SaveAccounts()

{

    for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

OnPlayerUpdateEx(i);

if(PlayerInfo[pJob] > 0)

    {

        if(PlayerInfo[pContractTime] < 25)

        {

PlayerInfo[pContractTime] ++;

}

    }

}

}

}

[/pawn]

signature.php?bg=000000&text=FFFFFF&border=a0a0a0&ip=93.119.26.222&port=7777&bg_image=
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.