14.05.2014, 05:54
pawn Код:
public OnPlayerConnect(playerid)
{
new pname[128]; // This get's the length of the player name
new file[128]; // This get's the lenght of the file
GetPlayerName(playerid, pname, sizeof(pname)); // This get's the player name with the lenght of the player name
format(file, sizeof(file), savefolder,pname); // This describe's where to save and how to save it
if(dini_Exists(file)) { // If the file exist
Killz[playerid] = dini_Int(file, "Kills"); // Set's "Kills"
Skillz_Pt[playerid] = dini_Int(file, "Skill_Pt"); // Set's "Skill_Weap"
Skillz_Weap[playerid] = dini_Int(file, "Skill_Weap");
Skillz_Armour[playerid] = dini_Int(file, "Skill_Armo"); // Set's "Skill_Weap"
// and at last this set's the value which were on the file
}
return 1;
}