NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

local mysql = exports.mysql
addEvent("playerGetMotds",true)


local gun1 = 86400

function setvip(oyuncu, commandName, targetPlayerName, vip,sure)
local targetName = exports.global:getPlayerFullIdentity(oyuncu, 1)
local vip,sure = tonumber(vip),tonumber(sure)
if getElementData(oyuncu,"accounts:username") == "neadshot" or getElementData(oyuncu,"accounts:username") == "neadshot" then
if not targetPlayerName or not tonumber(vip) or not sure then
outputChatBox("Sözdizimi: #ffffff/"..commandName.." [İsim/ID] [VİP] [SURE]", oyuncu, 255, 194, 14, true)
else
local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick( oyuncu, targetPlayerName )
if not targetPlayer then

elseif getElementData( targetPlayer, "loggedin" ) ~= 1 then
outputChatBox( "Player is not logged in.", oyuncu, 255, 0, 0 )
else
local cid = getElementData(targetPlayer, "dbid")

if vip == 0 then
--mysql:query_free("UPDATE `characters` SET `vip`="..mysql:escape_string(vip).." WHERE `id`='"..mysql:escape_string(getElementData(targetPlayer, "dbid")).."'")
exports.Hesaplar:SAD(cid,"Vip",nil)
removeElementData(targetPlayer,"vip")
outputChatBox("[!]#ffffff Şahısın vip yetkisi alındı.", oyuncu, 0, 255, 0, true)
outputChatBox("[!]#ffffff Vip yetkiniz alındı.", targetPlayer, 0, 0, 255, true)
return
end
if vip >= -0 then
if vip <= 3 then
local gundakika = sure*gun1
local suan = getRealTime()
local bitis = getRealTime(suan.timestamp+gundakika)
print("baslangic: "..suan.monthday.." - "..suan.hour..":"..suan.minute.." bitis: "..bitis.monthday.." - "..bitis.hour..":"..bitis.minute)
--local veriler = vip..","..suan..","..bitis
exports.Hesaplar:SAD(cid,"Vip",toJSON({level=vip,baslangic=suan.timestamp,bitis=bitis.timestamp}))
--mysql:query_free("UPDATE `characters` SET `vip`="..mysql:escape_string(veriler).." WHERE `id`='"..mysql:escape_string(getElementData(targetPlayer, "dbid")).."'")
setElementData(targetPlayer, "vip", vip)
outputChatBox("[!]#ffffff".. targetPlayerName .. " adlı kişinin vip seviyesini [" .. vip .. "] yaptın.", oyuncu, 0, 255, 0, true)
outputChatBox("[!]#ffffff"..targetName.." tarafından vip seviyeniz [" .. vip .. "] yapıldı.", targetPlayer, 0, 255, 0,true)
outputChatBox("[!]#ffffffVip["..vip.."] bitiş tarihiniz: "..bitis.monthday.."."..bitis.month.."."..(bitis.year+1900).." - "..bitis.hour..":"..bitis.minute..":"..bitis.second.." ", targetPlayer, 0, 255, 0,true)
else
outputChatBox("[!]#ffffff "..vip.." seviye veremezsin 1-3 seviye arasında verebilirsin.", oyuncu, 255, 0, 0, true)
outputChatBox("[!]#ffffff [1-Bronz] [2-Gold] [3-Elmas]", oyuncu, 0, 0, 255 ,true)
end
else
outputChatBox("[!]#ffffff "..vip.." seviye veremezsin 1-3 seviye arasında verebilirsin.", oyuncu, 255, 0, 0, true)
outputChatBox("[!]#ffffff [1-Bronz] [2-Gold] [3-Elmas]", oyuncu, 0, 0, 255 ,true)
end
end
end
else
outputChatBox( "[!]#ffffffBu işlemi yapmaya yetkiniz yok.", oyuncu, 255, 0, 0, true)
end
end
addCommandHandler("vipver", setvip)

local monthTable = {"Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"}
function getMonthName(month, digits)
if (not monthTable[month]) then return end
local month = monthTable[month]
if (digits) then
month = string.sub(month, 1, digits)
end
return month
end

addEventHandler("playerGetMotds", root, function()
local cid = getElementData(source, "dbid")
local vipveri = fromJSON(exports.Hesaplar:GAD(cid,"Vip") or toJSON({}))
local suan = getRealTime().timestamp
if vipveri and vipveri.level then
if tonumber(vipveri.bitis) < suan then -- vip silme
outputChatBox("[!]#ffffffVip["..vipveri.level.."] süresi dolmuştur", source, 0, 255, 0,true)
exports.Hesaplar:SAD(cid,"Vip",nil)
setElementData(source,"vip",0)
return
end
setElementData(source,"vip",tonumber(vipveri.level))
local bitis = getRealTime(vipveri.bitis)
outputChatBox("[!]#ffffffVip["..vipveri.level.."] bitiş tarihiniz: "..bitis.monthday.."."..bitis.month.."."..(bitis.year+1900).." - "..bitis.hour..":"..bitis.minute..":"..bitis.second.." ", source, 0, 255, 0,true)
end
end)

addCommandHandler("vipsurem", function(oyuncu)
local cid = getElementData(oyuncu, "dbid")
local vipveri = fromJSON(exports.Hesaplar:GAD(cid,"Vip") or toJSON({}))
print(cid)
if vipveri then
local bitis = getRealTime(vipveri.bitis)
outputChatBox("[!]#ffffffVip["..vipveri.level.."] bitiş tarihiniz: "..bitis.monthday.."."..bitis.month.."."..(bitis.year+1900).." - "..bitis.hour..":"..bitis.minute..":"..bitis.second.." ", oyuncu, 0, 255, 0,true)
end
end)

addCommandHandler("pmkapat", function(plr, cmd)
local logged = getElementData(plr, "loggedin")

local hasPerk, value = exports.donators:hasPlayerPerk(plr, 1)
if logged~=1 then
return false
end
if hasPerk or getElementData(plr, "vip") >=1 then
if tonumber(value)== 0 then
outputChatBox("[!]#ffffff Özel Mesajlarınızı başarıyla kapattınız.", plr, 0, 255, 0, true)
exports.donators:updatePerkValue(plr, 1, 1)
end
else
end
end)

addCommandHandler("pmac", function(plr, cmd)
local logged = getElementData(plr, "loggedin")

local hasPerk, value = exports.donators:hasPlayerPerk(plr, 1)
if logged~=1 then
return false
end
if hasPerk or getElementData(plr, "vip") >=1 then
if tonumber(value)== 1 then
outputChatBox("[!]#ffffff Özel Mesajlarınızı başarıyla aktif ettiniz.", plr, 0, 255, 0, true)
exports.donators:updatePerkValue(plr, 1, 0)
end
else
--outputChatBox("You don't have this perk activated. Please visit OwlGaming store under F10 menu.", plr)
end
end)

addEventHandler("onPlayerWeaponSwitch",root, function(onceki,suan)
if suan == 30 then
local vip = getElementData(source, "vip") or 0
if vip < 2 then
setPedWeaponSlot(source,0)
outputChatBox("[!]#ffffff AK-47 Adlı silahı kullanabilmen için VİP[2] ve üstü olmalısınız.", source,255,0,0,true)
end
end
end)

--[[
🔷 VIP Özellikleri 🔷
1⃣ [VIP 1] 1 Aylık 20 TL
- Her maaşta +200$ alır. -- (Yapıldı)
- PM Açma/Kapatma özelliği -- (Yapıldı)
- VIP Logosu -- (Yapıldı)
- Mesleklerde her turda +25$ -- (Yapıldı)

2⃣ [VIP 2] 1 Aylık 40 TL
- Her maaşta +300$ alır. -- (Yapıldı)
- PM Açma/Kapatma özelliği -- (Yapıldı)
- Hızlı Reklam Vermek iTV'ye gitmeden.
- VIP Logosu -- (Yapıldı)
- Mesleklerde her turda +50$ -- (Yapıldı)
- AK-47 marka silahı kullanabilme özelliği -- (Yapıldı)

3⃣ [VIP 3] 1 Aylık 60 TL
- Her maaşta +400$ alır. -- (Yapıldı)
- PM Açma/Kapatma özelliği -- (Yapıldı)
- Hızlı Reklam Vermek iTV'ye gitmeden.
- VIP Logosu -- (Yapıldı)
- Uygun fiyata mermi satın almak yarı fiyatına -- (Yapıldı)
- Mesleklerde her turda +75$ -- (Yapıldı)
- Ücretsiz Tamir Özelliği
- AK-47 marka silahı kullanabilme özelliği -- (Yapıldı)
]]

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.