29.03.2018, 20:58
Tente :
PHP код:
new arquivo[40];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(arquivo, 40,"Contas/%sInfos.ini",name);
GetPlayerPos(playerid, PosX,PosY,PosZ);
GetPlayerFacingAngle(playerid, PosA);
if(DOF2_FileExists(arquivo)){
DOF2_SetFloat(arquivo,"PosX",PosX);
DOF2_SetFloat(arquivo,"PosY",PosY);
DOF2_SetFloat(arquivo,"PosZ",PosZ);
DOF2_SetFloat(arquivo,"PosA",PosA);
DOF2_SetInt(arquivo, "VirtualWorld",GetPlayerVirtualWorld(playerid));
DOF2_SaveFile();
}
return 1;
}