StormRusher
New Member
- Joined
- Dec 23, 2009
- Messages
- 138
- Reaction score
- 0
Well i made this script but i want send the message for all the online players...
Note: i dont put the variables
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1013 and item.itemid == 9825 and gettime2gate.itemid == 6400 and getgate.itemid == 1049 then
doRemoveItem(getgate.uid,1)
doRemoveItem(gettime2gate.uid,1)
doRemoveItem(gettime2gate2.uid,1)
doCreateItem(1052,1,portao12)
doCreateItem(1052,1,portao22)
doCreateItem(1052,1,portao32)
doCreateItem(1056,1,portaoesquerda12)
doCreateItem(1056,1,portaoesquerda22)
doCreateItem(3515,1,portaotime1)
doCreateItem(3515,1,portaotime2)
doCreateItem(3515,1,portaotime3)
doCreateItem(3515,1,portaotime4)
doCreateItem(3515,1,portaotime5)
doCreateItem(3515,1,portaotime6)
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O Mapa de Demona foi ABERTO.")
doSendAnimatedText(gatepos,"ABERTO",60)
doSendAnimatedText(topos,"ABERTO",60)
setGlobalStorageValue(5, 2)
elseif item.uid == 1013 and item.itemid == 9826 and gettime2gate.itemid == 0 and getgate.itemid == 0 then
doCreateItem(1049,1,gatepos)
doCreateItem(6400,1,time2gate)
doCreateItem(6399,1,time2gate2)
doRemoveItem(gportao12.uid,1)
doRemoveItem(gportao22.uid,1)
doRemoveItem(gportao32.uid,1)
doRemoveItem(gportaoesquerda12.uid,1)
doRemoveItem(gportaoesquerda22.uid,1)
doRemoveItem(gportaotime1.uid,1)
doRemoveItem(gportaotime2.uid,1)
doRemoveItem(gportaotime3.uid,1)
doRemoveItem(gportaotime4.uid,1)
doRemoveItem(gportaotime5.uid,1)
doRemoveItem(gportaotime6.uid,1)
doTransformItem(item.uid,item.itemid-1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O Mapa de Demona foi FECHADO.")
doSendAnimatedText(gatepos,"FECHADO",145)
doSendAnimatedText(topos,"FECHADO",145)
setGlobalStorageValue(5, 0)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Note: i dont put the variables