10.09.2013, 02:27
Quote:
adiciona isto
para salvar Код:
new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x ,y ,z) DOF2_SetInt(ReturnFileUser(playerid),"x", x); DOF2_SetInt(ReturnFileUser(playerid),"y", y); DOF2_SetInt(ReturnFileUser(playerid),"z", z); Код:
new Float:x,Float:y,Float:z; x = DOF2_GetInt(ReturnFileUser(playerid),"x"); y = DOF2_GetInt(ReturnFileUser(playerid),"y"); z = DOF2_GetInt(ReturnFileUser(playerid),"z"); SetPlayerPos(playerid,x,y,z); |
Код:
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"); PlayerDados[playerid][pEmprego] = DOF2_GetInt(ReturnFileUser(playerid),"Emprego"); PlayerDados[playerid][pOrganizacao] = DOF2_GetInt(ReturnFileUser(playerid),"Organizaзгo"); PlayerDados[playerid][pCargo] = DOF2_GetInt(ReturnFileUser(playerid),"Cargo"); PosX = DOF2_GetInt(ReturnFileUser(playerid),"PosX"); PosY = DOF2_GetInt(ReturnFileUser(playerid),"PosY"); PosZ = DOF2_GetInt(ReturnFileUser(playerid),"PosZ"); SetPlayerPos(playerid,PosX,PosY,PosZ); } }