Tudo que vinicios thiago postou
-
Zombie Event Ramdon items
Nao deu certo e logo apos termino do evento da um erro no distrito como se nao existice a linha itens
-
Zombie Event Ramdon items
agora nao ganho nenhum item
-
Zombie Event Ramdon items
Galera Eu Criei Evento Zombie, mais quanto o player ganha o evento ele ganha todos os itens que eu coloquei na script, eu queria por exemplo que ele ganhasse tipo ramdon 1 item por ves. Script function loseOnZombieArena(cid) kickPlayerFromZombiesArea(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "BOOM! You are dead.") local players = getZombiesEventPlayers() if(#players <= 1) then local winner = players[1] if(winner) then doPlayerAddItem(winner, 2157, 5, true) doPlayerAddItem(winner, 6119, 1, true) doPlayerSendTextMessage(winner, MESSAGE_STATUS_CONSOLE_BLUE, "You won zombies arena event.") doBroadcastMessage("After " .. os.time() - getPlayerZombiesEventStatus(winner) .. " seconds of fight " .. getCreatureName(winner) .. " won Zombie Arena Event in game versus " .. getStorage(ZE_ZOMBIES_SPAWNED) .. " zombies!") kickPlayerFromZombiesArea(winner) else doBroadcastMessage("Zombie arena event finished! No one win?!?!?! WTF!") end doSetStorage(ZE_STATUS, 0) doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS) doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0) doSetStorage(ZE_ZOMBIES_SPAWNED, 0) local width = (math.max(ZE_spawnFromPosition.x, ZE_spawnToPosition.x) - math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)) / 2 + 1 local height = (math.max(ZE_spawnFromPosition.y, ZE_spawnToPosition.y) - math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)) / 2 + 1 local centerPos = {x=math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)+width,y=math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)+height,z=ZE_spawnFromPosition.z} for z = math.min(ZE_spawnFromPosition.z, ZE_spawnToPosition.z), math.max(ZE_spawnFromPosition.z, ZE_spawnToPosition.z) do centerPos.z = z for i, uid in pairs(getSpectators(centerPos, width, height, false)) do if(isMonster(uid)) then doRemoveCreature(uid) end end end end end function onStatsChange(target, cid, changetype, combat, value) if((cid and isMonster(cid) and getCreatureName(cid) == "Zombie Event") or (isInRange(getThingPosition(target), ZE_spawnFromPosition, ZE_spawnToPosition) and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target))) then doCreatureAddHealth(target, getCreatureMaxHealth(target)) loseOnZombieArena(target) return false end return true end
- Comando Potions Apenas Sem Pz ou Battlen
- Comando Potions Apenas Sem Pz ou Battlen
-
Comando Potions Apenas Sem Pz ou Battlen
Estou Com Problemas Em Meu Script, Gostaria Que Apenas Players Sem Pz "Battlen" Usa-se Este Comando..... ----------------- function onSay(cid, words, param) local t = string.explode(param, ",") if (words == "!mp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 5000) == TRUE then local bp = doPlayerAddItem(cid, 7620, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!gmp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 12000) == TRUE then local bp = doPlayerAddItem(cid, 7590, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!ghp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 19000) == TRUE then local bp = doPlayerAddItem(cid, 7591, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!gsp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 19000) == TRUE then local bp = doPlayerAddItem(cid, 8472, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!hp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 4500) == TRUE then local bp = doPlayerAddItem(cid, 7618, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!shp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 10000) == TRUE then local bp = doPlayerAddItem(cid, 7588, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!smp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 8000) == TRUE then local bp = doPlayerAddItem(cid, 7589, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!uhp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 31000) == TRUE then local bp = doPlayerAddItem(cid, 8473, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Voce precisa ser premium e ter money para usar esse comando.") return true end end -- adiciona mais aqui em cima end return TRUE end
-
(Resolvido)Comprar Potions Pro Comandos
Estou Com Outro Problema Nesse Script, Os Caras Estao Com Pz E Comprando Potion, Tipo N Quero Assim Pois Se Eles Tiver Pk Eles Compram Potion E Nunca Morrem
-
Procuro Servidor Para Hospedar [8.60]
Galera Estou A Procura De Uma Equipe e Principalmente Um Projeto De Ot que Possa Fazer Sucesso Tenho 2 Dedicado Primeiro: 2 Giga Memoria 500 HD i3 Estados Unidos Segundo: 2 Giga Memoria 1 T de HD i5 Canada Interessados Entrar em Contato Mais Rápido Possível
- Nolis Show Off
-
(Resolvido)Comprar Potions Pro Comandos
Queria um Script que o player que contem premium account possa comprar potion ultilizando comandos como !mp= mana potion !gmp= great mana potion etc...
-
Tenho Vps Muito Bom Preciso um mapa
Preciso de um mapa global, com minimo de bugs possível, eu tenho onde hopedar, quem ajuda se torna socio da equipe