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

VIP scrypt

zednem

New Member
Joined
Nov 15, 2008
Messages
108
Reaction score
0
I have a problem with that script, that woulb be a script to addvip to a player anda finish in 30 days, but have a problem...
someone may help?

function onSay(cid, words, param)

local acess = getPlayerAccess(cid)
local player = getPlayerByName(param)
local storage = getPlayerStorageValue(player, 13540)
local time = 30 * 24 * 60 * 60 * 1000

if words == '/addvip' and acess >= 3 and param ~= '' and storage ~= 1 then

setPlayerStorageValue(player, 13540, 1)
doPlayerSendTextMessage(player, 20, 'You are vip now!')
doPlayerSendTextMessage(cid,21,'You have added a vip to ' .. param .. '.')
addEvent(endvip, time, player)

elseif acess < 3 then
doPlayerSendTextMessage(cid,25,"You can't do that.")

elseif storage ~= -1 then
doPlayerSendTextMessage(cid,25,"This player is vip already.")

else
doPlayerSendTextMessage(cid,21,"Player doensn't exist.")

end
function endvip(player)
doPlayerSendTextMessage(player, 20, 'You time vip is over.')
setPlayerStorageValue(player, 13540, 0)
end
end
 
Back
Top