Save Killstreak configuration with Y_ini
#2

pawn Код:
new KS[MAX_PLAYERS];
public OnPlayerDeath(playerid,killerid,reason)
{
    KS[killerid]++;
    KS[playerid] = 0;
    return 1;
}

stock SaveKS(playerid) // Use this when the player disconnected or where ever you use it!
{
     INI_WriteInt(file dest,"Killstreak",KS);
     INI_Close(File);
     return 1;
}
Reply


Messages In This Thread
Save Killstreak configuration with Y_ini - by PryX0G3n - 22.09.2012, 16:20
Re: Save Killstreak configuration with Y_ini - by Kitten - 23.09.2012, 10:07
Re: Save Killstreak configuration with Y_ini - by PryX0G3n - 23.09.2012, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)