Good night! I am in need of help once more of you guys!
I'm using a script that works perfectly well. He server to launch the free player at Temple, after ending his premium. But it needs to be improved!
Error made by the script: This play bills that have not yet chosen a vocation to the main area of my map.
Anyone can help to launch the script are in the temple, the players who already have a vocation, after ending his premium?
script 1:
function onLogin(cid)
local premmydays = getPlayerPremiumDays(cid)
if premmydays > 0 then
setPlayerStorageValue(cid, 20500, 1)
end
return TRUE
end
_________________________________________________________________
script 2:
function onLogin(cid)
pos = {x = 1116, y = 1217, z = 7}
if getPlayerStorageValue(cid, 20500) == 1 and getPlayerPremiumDays(cid) == 0 then
doTeleportThing(cid, pos)
doPlayerSetTown(cid, 1)
doPlayerPopupFYI(cid, "Premium time is over. Thanks for donating to our server.")
setPlayerStorageValue(cid, 20500, -1)
end
return TRUE
end
I'm using a script that works perfectly well. He server to launch the free player at Temple, after ending his premium. But it needs to be improved!
Error made by the script: This play bills that have not yet chosen a vocation to the main area of my map.
Anyone can help to launch the script are in the temple, the players who already have a vocation, after ending his premium?
script 1:
function onLogin(cid)
local premmydays = getPlayerPremiumDays(cid)
if premmydays > 0 then
setPlayerStorageValue(cid, 20500, 1)
end
return TRUE
end
_________________________________________________________________
script 2:
function onLogin(cid)
pos = {x = 1116, y = 1217, z = 7}
if getPlayerStorageValue(cid, 20500) == 1 and getPlayerPremiumDays(cid) == 0 then
doTeleportThing(cid, pos)
doPlayerSetTown(cid, 1)
doPlayerPopupFYI(cid, "Premium time is over. Thanks for donating to our server.")
setPlayerStorageValue(cid, 20500, -1)
end
return TRUE
end