Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
(Place this into whichever spot you wish.. Login / onUse (a chest for example.)
Using storage '45001' as an example.
Code:
function onLogin(cid)
if getAccountStorageValue(getPlayerAccountId(cid), 45001) < 1 then
-- give items
-- give premium points
setAccountStorageValue(getPlayerAccountId(cid), 45001, 1)
end
return true
end
So in my example I used storage 45001.
You can use any storage value though.
You can view more about storage values here , or a more refined description here.
As for the level requirement, you can simply add an additional parameter check.
Code:
function onLogin(cid)
if getAccountStorageValue(getPlayerAccountId(cid), 45001) < 1 then
if getPlayerLevel(cid) >= 100 then
-- give items
-- give premium points
setAccountStorageValue(getPlayerAccountId(cid), 45001, 1)
end
end
return true
end