Ir para conteúdo
  • 0

masdead

Pergunta

Bom pessoal, Estou usando esse Script:

 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

Ele Remove Red E Black Skull. Só que ele rremove os frags tbm. Gostaria que ele remove apénas a Red E BlackSkull e os frags continuassem. Espero que possam me ajudar..

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 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)
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

 

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...