Postado Novembro 16, 2015 9 anos Olá galera da tk, estou precisando da ajudar de vc com um script de actions não tá dando error mais não usar o item o script abaixo ah tou usando o tfs 1.0 function onUse(cid, item, frompos, item2, topos) local skull = getCreatureSkullType(cid) local bad_skulls = {SKULL_RED,SKULL_BLACK} if(isInArray(bad_skulls, skull)) then doPlayerSetSkullEnd(cid, 0, skull) doRemoveItem(item.uid, 1) db.executeQuery('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`') doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your skull has been removed!") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red/black skull!") end return true end
Postado Novembro 19, 2015 9 anos function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if not isInArray({SKULL_RED, SKULL_BLACK}, player:getSkull()) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You can only remove red or black skulls!") return true end player:setSkull(0) player:setSkullTime(0) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Your skull has been removed!") Item(item.uid):remove(1) return true end Discord: vankk #7765 Precisando de ajuda? Entre em contato comigo via Discord. Muitos vêm seus muitos dias de glória, mas poucos vêm seus muitos dias de luta.
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.