Postado Abril 9, 2017 8 anos Autor 2 minutos atrás, Gustavo BRX disse: Antes do ultimo return true coloque isso function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then setPlayerStorageValue(cid, 122000, 1) return true if getPlayerStorageValue(cid, 122000) == 1 then location = { --Posição do hospital vip {x=1083, y=1014, z=14}, {x=1086, y=1014, z=14}, {x=1089, y=1014, z=14}, {x=1092, y=1014, z=14}, {x=1095, y=1014, z=14}, {x=1096, y=1031, z=14}, {x=1092, y=1031, z=14}, {x=1089, y=1031, z=14}, {x=1086, y=1030, z=14}, {x=1083, y=1031, z=14}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end end return true end ainda ta com o mesmo problema nao entra no servidor 12 minutos atrás, Gustavo BRX disse: Antes do ultimo return true coloque isso ta na versao 0.4? O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Postado Abril 9, 2017 8 anos 44 minutos atrás, ZikaLord disse: function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then setPlayerStorageValue(cid, 122000, 1) return true if getPlayerStorageValue(cid, 122000) == 1 then location = { --Posição do hospital vip {x=1083, y=1014, z=14}, {x=1086, y=1014, z=14}, {x=1089, y=1014, z=14}, {x=1092, y=1014, z=14}, {x=1095, y=1014, z=14}, {x=1096, y=1031, z=14}, {x=1092, y=1031, z=14}, {x=1089, y=1031, z=14}, {x=1086, y=1030, z=14}, {x=1083, y=1031, z=14}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end end return true end ainda ta com o mesmo problema nao entra no servidor ta na versao 0.4? Cada no login.lua tu poem isso if getPlayerStorageValue(cid, 122000) == 1 then location = { --Posição do hospital vip {x=2583, y=2517, z=15}, {x=2582, y=2517, z=15}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end Cria uma arquivo chamado deathh.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then setPlayerStorageValue(cid, 122000, 1) return true end return true end creaturescripts.xml <event type="preparedeath" name="Hospitalsto" event="script" value="deathh.lua"/>
Postado Outubro 3, 2017 7 anos actualizar por favor me gustaría este script no entiendo como colocarlo. AJUDA! Editado Outubro 4, 2017 7 anos por acan (veja o histórico de edições)
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.