• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

special request :D

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
I need Simple script That Do Effect On Vip player effect VIP!
i already have vip system.

and want script to give players when reach lvl 25k a vip medal >medal of honour< And broadcast >player reach lvl 25k and recive vip medal<.
 
function onThink(cid, interval)
if getPlayerLevel(cid) >= 25000 and getPlayerStorageValue(cid,1234) == -1 then
doPlayerAddItem(cid, 10503, 1) ---- id of medal
doPlayerSendTextMessage(cid,21,"Congratulations to your level! Here's a vip medal as a present!")
broadcastMessage("" .. getPlayerName(cid) .. " reach lvl 25k and recive vip medal",22)
setPlayerStorageValue(cid,1234,1)
end
return true
end
the other script should it come like the text vip all the time on the character?
 
LUA:
function onAdvance(cid, skill, oldlevel, newlevel)
        if(getPlayerStorageValue(cid, 9001) ~= 1 and skill == SKILL__LEVEL and newlevel == 25000) then
                doPlayerAddItem(cid, VIPMEDALID, 1)
                broadcastMessage(getPlayerName(cid).." advanced to level ".. newlevel ..". and received a VIP Medal. ", MESSAGE_EVENT_ADVANCE)
                setPlayerStorageValue(cid, 9001, 1)
                doPlayerSendTextMessage(cid, 22, "You have received a VIP Medal because you advanced to level 25000")
                end
        return TRUE
end
 
Back
Top