• 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!

premium point

elking

Swev-v2.sytes.net Comming Soon !<>!
Joined
Aug 20, 2012
Messages
445
Reaction score
28
Location
Egypt
need script which give player who have first login premuim point
 
go to creaturescript/scripts/login.lua and under function onlogin(cid)
Code:
local config = {
    znote = "no", --If you use gesior acc leave it no
    points = 50 --how much points will the player recive
}

if (getPlayerLastLogin(cid) == 0) then
    if (config.znote == "yes") then
        db.executeQuery("UPDATE `znote_accounts` SET `points` = `points` + "..config.points.." WHERE `account_id` ='"..getPlayerAccount(cid).."'")     
        else
                db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + "..config.points.." WHERE `name` ='"..getPlayerAccount(cid).."'") 
        end
end
 
Back
Top