Ancore
New Member
- Joined
- Jul 6, 2012
- Messages
- 216
- Reaction score
- 1
Hello, I am looking for a script that contains the following function:
When someone is premium, his premium ends and he was in a position between X1-X2 and Y1-Y2 (like in the image) he gets teleported to the temple, otherwise, if his premium ends but he was not between that positions, he logins on the same position.
Here is the end premium and get teleports to the temple script, without the condition of the position:
´
Thanks,
Ancore.
When someone is premium, his premium ends and he was in a position between X1-X2 and Y1-Y2 (like in the image) he gets teleported to the temple, otherwise, if his premium ends but he was not between that positions, he logins on the same position.
Here is the end premium and get teleports to the temple script, without the condition of the position:
´
Code:
if getPlayerPremiumDays(cid) < 1 then
doTeleportThing(cid,getPlayerMasterPos(cid))
doPlayerSendTextMessage(cid,MESSAGE_FIRST,'You got teleported to temple, as your premium has expired.')
doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
end
Thanks,
Ancore.