• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

When no premium, if get voc, teleport to templle

Erexo

Kage
Premium User
Joined
Mar 27, 2010
Messages
743
Solutions
5
Reaction score
200
Location
Pr0land
GitHub
Erexo
Hello,
i made that script:

LUA:
if isPremium(cid) and getPlayerVocation(cid) == 85 
then
doPlayerSendTextMessage(cid, 22, "Welcome!")
else
doPlayerSendTextMessage(cid, 22, "Buy Premium to play this character!")
doTeleportThing(cid, {x = 1008, y = 543, z = 7}, true)
end
and add this to login.lua

and when someone login (have premium), then they tele...

(or no have premium, but other voc, tele too).
All players (premium/no , voc 24/26 or 85) are teleported...

Someone can tell me where is a bug?
 
LUA:
function onLogin(cid)
 if isPremium(cid) == true and getPlayerVocation(cid) == 85 then
                   doPlayerSendTextMessage(cid, 22, "Welcome!")
               else
                 doPlayerSendTextMessage(cid, 22, "Buy Premium to play this character!")
                 doTeleportThing(cid, {x = 1008, y = 543, z = 7}, true)
          end
return TRUE
end
 
Back
Top