I have this script to premium players pass to door, but many players pass using White Skull
how can I make only players without skull through the door?
how can I make only players without skull through the door?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPremium(cid) == TRUE then
if getCreaturePosition(cid).y < toPosition.y then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
else
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
end
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 10)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You no Have Premium Account.")
end
return TRUE
end