Ir para conteúdo

Featured Replies

Postado

Olá pessoal tudo bom , eu queria uma script que ao usar um item o PK RED era removido , e se for possivel o frags tambem.

 Tenho uma aqui que ao relogar o char o pk red volta mais o frags somem , por favor me ajudem .

 

+rep

  • Respostas 8
  • Visualizações 585
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onUse(cid, item) if getCreatureSkullType(cid) == SKULL_RED then if not getTileInfo(getThingPos(cid)).protection then doPlayerSetSkullEnd(cid, 0, skull) doRemoveItem(item.uid, 1) db.ex

  • testa assim :   function onUse(cid, item) if getCreatureSkullType(cid) == SKULL_RED then if not getTileInfo(getThingPos(cid)).protection then local pid = getPlayerGUID(cid) doPlayerSetS

  • ops erro meu rsrs..   function onUse(cid, item) if getCreatureSkullType(cid) == SKULL_RED then if not getTileInfo(getThingPos(cid)).protection then local pid = getPlayerGUID(cid) doPlay

Posted Images

Postado
13 minutos atrás, leozincorsair disse:

Quando reloga o pk red volta !

 

function onUse(cid, item)

if getCreatureSkullType(cid) == SKULL_RED then
	if not getTileInfo(getThingPos(cid)).protection 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 can't remove your skull in this area.")
	end
else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red skull!")
end

return true
end

 

Postado
  • Autor
3 horas atrás, Ed.Specter disse:

 


function onUse(cid, item)

if getCreatureSkullType(cid) == SKULL_RED then
	if not getTileInfo(getThingPos(cid)).protection 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 can't remove your skull in this area.")
	end
else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red skull!")
end

return true
end

 

Deu esse erro :

Sem título.png

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo