RA

Comando !removeskull Sómente Usado Em Pz. Rep+

By Rafaellm, 29 de jan. de 2012 in Archived

removedor só em pz.
script
3
531
RafaellmR
29 de janeiro de 2012 às 19:24

Comando !removeskull todos sabem que tira o Skull ok.

Mais na war ele tira la e fica chato demais ridiculo.

 

Então eu gostaria que só pode usar em Locais PZ. E nao pode estar com battle.

 

Script.

 

function onSay(cid, words, param, channel)

 

if getCreatureSkullType(cid) == SKULL_RED then

doPlayerRemoveMoney(cid, 2000000)

doCreatureSetSkullType(cid, SKULL_NONE)

else

doPlayerSendTextMessage(cid, 22, "Você precisa de 2kk para remover a redskull.")

end

return TRUE

end

 

 

Se alguem me ajudar REP+.

jhon992J
30 de janeiro de 2012 às 00:31
function onSay(cid, words, param, channel)

if (getTilePzInfo(getCreaturePosition(cid)) == TRUE or getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE) then
if getCreatureSkullType(cid) == SKULL_RED then
	doPlayerRemoveMoney(cid, 2000000)
	doCreatureSetSkullType(cid, SKULL_NONE)
else
	doPlayerSendTextMessage(cid, 22, "Você precisa de 2kk para remover a redskull.")
end
else
doPlayerSendTextMessage(cid, 22, "Você não pode usar este comando estando com battle ou pz.")
end

return TRUE
end

Edited Janeiro 30 by Jhon992

RafaellmR
30 de janeiro de 2012 às 11:35

REP+ Pronto vlw.