PHP код:
SavePlayer(playerid)
{
if( DOF2_FileExists(PegarConta(playerid)))
{
DOF2_SetInt(PegarConta(playerid), "Skin", Player[playerid][Skin]);
DOF2_SetInt(PegarConta(playerid), "Score", Player[playerid][Score]);
DOF2_SetInt(PegarConta(playerid), "Matou", Player[playerid][Matou]);
DOF2_SetInt(PegarConta(playerid), "Morreu", Player[playerid][Morreu]);
DOF2_SetInt(PegarConta(playerid), "Faccoes", Player[playerid][Faccoes]);
DOF2_SetInt(PegarConta(playerid), "Morro", Player[playerid][Morro]);
DOF2_SetInt(PegarConta(playerid), "Cargo", Player[playerid][Cargo]);
DOF2_SetInt(PegarConta(playerid), "Dinheiro", GetPlayerMoney(playerid));
DOF2_SetInt(PegarConta(playerid), "Admin", Player[playerid][Admin]);
DOF2_SaveFile();
}
return 1;
}