Postado Julho 30, 2013 11 anos Bom to com um problema eu uso o script abaixo mais quando o player morre da Temple position is wrong. COntact the administrator local config = { storageTeamOne = 68473, storageTeamTwo = 68474, teamOne = { outfitMale = {lookType = 128, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94}, -- 94 representa a cor vermelha. outfitFemale = {lookType = 136, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94}, templeId = 1 }, teamTwo = { outfitMale = {lookType = 128, lookHead = 82, lookBody = 82, lookLegs = 82, lookFeet = 82}, -- 82 representa a cor verde. outfitFemale = {lookType = 136, lookHead = 82, lookBody = 82, lookLegs = 82, lookFeet = 82}, templeId = 2 } } function onLogin(cid) local vermelho = getGlobalStorageValue(config.teamOne) local verde = getGlobalStorageValue(config.storageTeamTwo) if vermelho > verde then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, config.teamTwo.outfitFemale) else doCreatureChangeOutfit(cid, config.teamTwo.outfitMale) end doTeleportThing(cid, getTownTemplePosition(config.teamTwo.templeId)) setGlobalStorageValue(config.storageTeamTwo, verde+1) setPlayerStorageValue(cid, config.storageTeamTwo, 1) else if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, config.teamOne.outfitFemale) else doCreatureChangeOutfit(cid, config.teamOne.outfitMale) end doTeleportThing(cid, getTownTemplePosition(config.teamOne.templeId)) setGlobalStorageValue(config.teamOne, vermelho+1) setPlayerStorageValue(cid, config.teamOne, 1) end registerCreatureEvent(cid, "LogoutTeam") registerCreatureEvent(cid, "DeathTeam") return true end function onDeath(cid, corpse, deathList) if getPlayerStorageValue(cid, config.storageTeamTwo) == 1 then setPlayerStorageValue(cid, config.storageTeamTwo, 0) setGlobalStorageValue(config.storageTeamTwo, getGlobalStorageValue(config.storageTeamTwo)-1) else setPlayerStorageValue(cid, config.teamOne, 0) setGlobalStorageValue(config.teamOne, getGlobalStorageValue(config.teamOne)-1) end return true end function onLogout(cid) if getPlayerStorageValue(cid, config.storageTeamTwo) == 1 then setPlayerStorageValue(cid, config.storageTeamTwo, 0) setGlobalStorageValue(config.storageTeamTwo, getGlobalStorageValue(config.storageTeamTwo)-1) else setPlayerStorageValue(cid, config.teamOne, 0) setGlobalStorageValue(config.teamOne, getGlobalStorageValue(config.teamOne)-1) end return true end Editado Julho 30, 2013 11 anos por kaio Santos (veja o histórico de edições) Mais vale a lagrima da derrota doque a Covardia de não ter lutado , Prefiro morrer de Pé do que sempre viver ajoelhado. Kaio santos "soldier killed"
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.