function onLogin(cid)
local pos = {x=,y=,z=} -- position where he'll be teleported
local townid = 1 -- townid which he'll be set now
local freeacc = xxx -- change this to the storagevalue when a player is free account.
if getPlayerStorageValue(cid,freeacc) == -1 then
if isInArray({1,2,3,4},getPlayerVocation(cid))== TRUE then
setPlayerStorageValue(cid,freeacc,1)
doPlayerSetTown(cid, townid)
doTeleportThing(cid,pos,0)
doPlayerSendTextMessage(cid,"You are Free Account now.",MESSAGE_STATUS_DEFAULT)
else
return FALSE
end
else
return FALSE
end
return TRUE
end