13.01.2014, 23:54
PHP код:
OnPlayerSave(playerid);
public OnPlayerSave(playerid)
{
format(String,sizeof(String),"Contas/%s.ini",PlayerNick(playerid));
if(!DOF2_FileExists(String)) { return 1; }
if(DOF2_FileExists(String) && JogadorLogado[playerid] == true)
{
DOF2_SetInt(String,"Dinheiro",GetPlayerMoney(playerid));
DOF2_SetInt(String,"NivelAdmin",Player[playerid][qAdmin]);
DOF2_SetInt(String,"Matou",Player[playerid][qMatou]);
DOF2_SetInt(String,"Morreu",Player[playerid][qMorreu]);
DOF2_SetInt(String,"Char",Player[playerid][qSkin]);
DOF2_SetInt(String,"Level",GetPlayerScore(playerid));
DOF2_SetInt(String,"Sexo",Player[playerid][qSexo]);
DOF2_SetInt(String,"Tutorial",Player[playerid][qTut]);
DOF2_SetInt(String,"LicencaAero",Player[playerid][qLicAero]);
DOF2_SetInt(String,"LicencaBarco",Player[playerid][qLicBarco]);
DOF2_SetInt(String,"LicencaMoto",Player[playerid][qLicMoto]);
DOF2_SetInt(String,"LicencaCarro",Player[playerid][qLicCarro]);
DOF2_SetInt(String,"LicencaCamOni",Player[playerid][qLICamOni]);
DOF2_SetInt(String,"LicencaArma",Player[playerid][qLicArma]);
DOF2_SetInt(String,"EstiloLuta",Player[playerid][qLuta]);
DOF2_SetInt(String,"Organizacao",Player[playerid][qOrganizacao]);
DOF2_SetInt(String,"CargoORG",Player[playerid][qCargo]);
DOF2_SetInt(String,"GPS",Player[playerid][qGPS]);
DOF2_SaveFile();
}
return 1;
}