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?
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