31.08.2011, 19:29
Olб amigos do forum.sa-mp, estou tendo um problema com meu salvamento de skin, espero que possam ajudar
Quando o player morre nasce com a skin certa mais quando sai do server e entra denovo aparece outra skin, vou postar as linhas quem poder ajudar fico grato.
OnPlayerDeath
Dialog de Login
OnPlayerDisconnect
E nos Spawns das Org eu coloquei assim
Nгo sei se tem algum problema mais no OnGameModeInit Coloquei isto
Quando o player morre nasce com a skin certa mais quando sai do server e entra denovo aparece outra skin, vou postar as linhas quem poder ajudar fico grato.
OnPlayerDeath
Код:
dini_IntSet(file,"Skin", GetPlayerSkin(playerid));
Код:
SetPlayerSkin(playerid, dini_Int(file,"Skin"));
Код:
dini_IntSet(file,"Skin", GetPlayerSkin(playerid));
Код:
if(PlayerInfo[playerid][Reporter] >= 1) { // Repуrter SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2031.6357,161.6665,28.8359); GameTextForPlayer(playerid,"~W~BEM VINDO~h~ ~y~Reporter !", 1000,1); GivePlayerWeapon(playerid,43,999); SetPlayerColor(playerid, 0x8000FFFF); //SetPlayerSkin(playerid, 187); SetPlayerSkin(playerid, dini_Int(file,"Skin")); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid,1); }
Код:
//SELEЗГO DE CLASSE AddPlayerClass(285,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(287,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(107,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(286,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(29,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(14,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(187,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); // AddPlayerClass(200,-1641.2968,1203.5337,7.2451,245.0136,0,0,0,0,0,0); //