Creditos:
---Clic 98%--- por ter feito dado a ideia e desenvolvido!
---Colex 2%--- por ter arumado um bug da fala!! (pq ele tem credito em todas minhas runas??? )
function onUse(cid, item, frompos, item2, topos)doPlayerRemoveItem(cid,2282,1)
if item2.itemid == 2311 then
if doPlayerRemoveMoney(cid,100) == 1 then
doPlayerAddItem(cid,2311,100)
doPlayerSendTextMessage(cid,22,"Vc comprou hmm com sucesso!")
else
doPlayerSendCancel(cid,"Vc não tem esse tanto de dinheiro!")
end
elseif item2.itemid == 2304 then
if doPlayerRemoveMoney(cid,100) == 1 then
doPlayerAddItem(cid,2304,100)
doPlayerSendTextMessage(cid,22,"Vc comprou gfb com sucesso!")
else
doPlayerSendCancel(cid,"Vc não tem esse tanto de dinheiro!")
end
elseif item2.itemid == 2268 then
if doPlayerRemoveMoney(cid,100) == 1 then
doPlayerAddItem(cid,2268,100)
doPlayerSendTextMessage(cid,22,"Vc comprou sd com sucesso!")
else
doPlayerSendCancel(cid,"Vc não tem esse tanto de dinheiro!")
end
elseif item2.itemid == 2273 then
if doPlayerRemoveMoney(cid,100) == 1 then
doPlayerAddItem(cid,2273,100)
doPlayerSendTextMessage(cid,22,"Vc comprou uh com sucesso!")
else
doPlayerSendCancel(cid,"Vc não tem esse tanto de dinheiro!")
end
end
return 1
end
if doPlayerRemoveMoney(cid,100) == 1 then eu aconselho mudar isso pois isso so funciona com GPS eu aconselharia serv assim!if doPlayerRemoveItem(cid,ida da platinium ou Crystal,100) == 1 then
EM vez de vc fika voltanto na loja é bem + facil vc usa essa runa!!!!
doPlayerRemoveItem(cid,2282,1) se vc nao kise perder a runa vc remove essa linha da action continua funfando mesmo sem essa linha!!
BOm acho q é isso!!!
------edit------
@Claverockz
Ja q vc explico eu nem vo explica!!! vlw!!