Im using this script
its working great but script doesnt check voc players can someone edit this script and add check voc players??
Code:
function onUse(cid, item, frompos, item2, topos)
player1pos = {x=32673, y=32085, z=8, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=32677, y=32089, z=8, stackpos=253}
player2 = getThingfromPos(player2pos)
player3pos = {x=32673, y=32093, z=8, stackpos=253}
player3 = getThingfromPos(player3pos)
player4pos = {x=32669, y=32089, z=8, stackpos=253}
player4 = getThingfromPos(player4pos)
piece1pos = {x=32673, y=32083, z=8, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
piece2pos = {x=32679, y=32089, z=8, stackpos=1}
getpiece2 = getThingfromPos(piece2pos)
piece3pos = {x=32673, y=32094, z=8, stackpos=1}
getpiece3 = getThingfromPos(piece3pos)
piece4pos = {x=32667, y=32089, z=8, stackpos=1}
getpiece4 = getThingfromPos(piece4pos)
if item.uid == 16000 and item.itemid == 1945 and getpiece1.itemid == 2455 and getpiece2.itemid == 2175 and getpiece3.itemid == 2376 and getpiece4.itemid == 2674 and player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
doRemoveItem(getpiece1.uid,1)
doRemoveItem(getpiece2.uid,1)
doRemoveItem(getpiece3.uid,1)
doRemoveItem(getpiece4.uid,1)
nplayer1pos = {x=32671, y=32069, z=8}
doTeleportThing(player1.uid,nplayer1pos)
nplayer2pos = {x=32672, y=32069, z=8}
doTeleportThing(player2.uid,nplayer2pos)
nplayer3pos = {x=32671, y=32070, z=8}
doTeleportThing(player3.uid,nplayer3pos)
nplayer4pos = {x=32672, y=32070, z=8}
doTeleportThing(player4.uid,nplayer4pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doSendMagicEffect(nplayer4pos,10)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 16000 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end