25.12.2012, 19:43
Nгo estб salvando a skin, quando o jogador desconecta era para salvar a skin, ele nгo salva.
Dialog de Login:
Stock LoadFile:
OnPlayerSpawn:
OnPlayerDisconnect:
Dialog de Login:
pawn Код:
LoadFile(playerid);
SetSpawnInfo(playerid, 0, 0, -353.3304, 1530.3779, 75.3594, 260.6404, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
GivePlayerMoney(playerid, Player[playerid][Dinheiro]);
pawn Код:
Player[playerid][Nivel] = DOF2_GetInt(File(playerid), "Nivel");
Player[playerid][Skin] = DOF2_GetInt(File(playerid), "Skin");
Player[playerid][Dinheiro] = DOF2_GetInt(File(playerid), "Dinheiro");
Player[playerid][Org] = DOF2_GetInt(File(playerid), "Org");
Player[playerid][OrgLevel] = DOF2_GetInt(File(playerid), "OrgLevel");
Player[playerid][Casa] = DOF2_GetInt(File(playerid), "Casa");
Player[playerid][Admin] = DOF2_GetInt(File(playerid), "Admin");
pawn Код:
SetPlayerSkin(playerid, Player[playerid][Skin]);
pawn Код:
SaveFile(playerid);
DestroyVehicle(Veiculo[playerid]);
format(txtConectou, sizeof(txtDisconectou), "-| %s acabou de sair do servidor", GetName(playerid));
SendClientMessageToAll(AZUL, txtDisconectou);