12.08.2012, 15:05
Esta aqui;
PHP код:
//Salvamento
stock SalvarPlayer(playerid)
{
if(DOF2_FileExists(ReturnFileUser(playerid))) {
DOF2_SetInt(ReturnFileUser(playerid),"Level",GetPlayerScore(playerid));
DOF2_SetInt(ReturnFileUser(playerid),"Dinheiro",GetPlayerMoney(playerid));
DOF2_SetInt(ReturnFileUser(playerid),"Admin Level",PlayerDados[playerid][pAdmin]);
DOF2_SetInt(ReturnFileUser(playerid),"Skin",GetPlayerSkin(playerid));
DOF2_SetInt(ReturnFileUser(playerid),"VIP", PlayerDados[playerid][pVIP]);
DOF2_SaveFile();
}
}
//Salvamento
stock CarregarPlayer(playerid)
{
if(DOF2_FileExists(ReturnFileUser(playerid))) {
SetPlayerScore(playerid, DOF2_GetInt(ReturnFileUser(playerid), "Level"));
SetPlayerMoney(playerid, DOF2_GetInt(ReturnFileUser(playerid), "Dinheiro"));
PlayerDados[playerid][pAdmin] = DOF2_GetInt(ReturnFileUser(playerid),"Admin Level");
SetPlayerSkin(playerid, DOF2_GetInt(ReturnFileUser(playerid),"Skin"));
PlayerDados[playerid][pVIP] = DOF2_GetInt(ReturnFileUser(playerid),"VIP");
}
}