11.12.2015, 00:44
Ta ai..
Quote:
|
stock SalvarPlayer(playerid) { GetPlayerName(playerid, Nome, sizeof(Nome)); format(String, sizeof(String), CONTAS, Nome); DOF2::SetInt(String,"Dinheiro", GetPlayerMoney(playerid)); Skin[playerid] = GetPlayerSkin(playerid); DOF2::SetInt(String,"Skin", GetPlayerSkin(playerid)); Procurado[playerid] = GetPlayerWantedLevel(playerid); DOF2::SetInt(String,"Procurado", Procurado[playerid]); GetPlayerName(playerid, Nome, sizeof(Nome)); format(String, sizeof(String), "LevelBRL/%s.ini", Nome); DOF2_SetInt(String, "Segundos", PlayerInfo[playerid][pSegundos]); DOF2_SetInt(String, "Score", PlayerInfo[playerid][pScore]); GetPlayerName(playerid, String, sizeof(String)); format(String, sizeof(String), CONTAS, Nome); GetPlayerPos(playerid,CoordX[playerid],CoordY[playerid],CoordZ[playerid]); GetPlayerFacingAngle(playerid,CoordA[playerid]); DOF2::SetInt(String,"CoordInt", GetPlayerInterior(playerid)); DOF2::SetFloat(String,"CoordX", CoordX[playerid]); DOF2::SetFloat(String,"CoordY", CoordY[playerid]); DOF2::SetFloat(String,"CoordZ", CoordZ[playerid]); DOF2::SetFloat(String,"CoordA", CoordA[playerid]); DOF2::SaveFile(); return true; } stock CarregarPlayer(playerid) { GetPlayerName(playerid, Nome, sizeof(Nome)); format(String, sizeof(String), CONTAS, Nome); GivePlayerMoney(playerid, DOF2::GetInt(String,"Dinheiro")); SetPlayerSkin(playerid, DOF2::GetInt(String, "Skin")); Procurado[playerid] = DOF2::GetInt(String, "Procurado"); SetPlayerWantedLevel(playerid, Procurado[playerid]); SetPlayerPos(playerid, CoordX[playerid], CoordY[playerid], CoordZ[playerid]); SetPlayerFacingAngle(playerid, CoordA[playerid]); SetPlayerInterior(playerid, DOF2::GetInt(String,"CoordInt")); GetPlayerName(playerid, Nome, sizeof(Nome)); format(String, sizeof(String), "LevelBRL/%s.ini", Nome); PlayerInfo[playerid][pSegundos] = DOF2_GetInt(String, "Segundos"); PlayerInfo[playerid][pScore] = DOF2_GetInt(String, "Score"); SetPlayerScore(playerid, DOF2_GetInt(String,"Score")); DOF2::SaveFile(); return true; } |

