0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addEventHandler('onPlayerChat', root ,function(text,typechat) -- chat eventi cancelEvent() local isim = getPlayerName(source) local r, g, b = getPlayerNametagColor(source) or math.random(0,255), math.random(0,255), math.random(0,255) local oyuncuTag = oyuncununTaginiCek(source) local randomID = math.random ( 1, #yazilar ) local yazi = yazilar[randomID] local serial = getPlayerSerial(source) if serialler[serial] then return end -- spam koruma if ayarlar.spamKoruma then if not isPlayerExcluded(source) then if isTimer(antiSpam[source]) then cancelEvent() spamEngelle(source,"Mutele") else antiSpam[source] = setTimer(function(oyuncu) antiSpam[oyuncu] = nil end, 1000, 1, source) end end end -- reklam koruma if ayarlar.reklamKoruma then if isAdvertisement(text) then if not isPlayerExcluded(source) then for i, yetkililer in ipairs (getElementsByType("player")) do if isPlayerExcluded(yetkililer) then if text == yazi then return end if ayarlar.mesajGorme then outputChatBox("#000000[#FF0000REKLAM UYARI#000000] " .. isim .. " #FF0000İsimli oyuncu reklam yaptı: #FFFFFF" .. text, yetkililer, 255, 255, 255, true) outputServerLog("[ReklamUyari] " .. isim:gsub('#%x%x%x%x%x%x', '') .. ": " .. text) end end end if hakVer(source) then text = yazi else text = yazi spamEngelle(source,"Mutele") end end end end -- hızlı yazma koruma if hizliYazma[source] and hizliYazma[source] > getTickCount() then outputChatBox("Teker teker yazınız!", source, 255, 0, 0) return else hizliYazma[source] = getTickCount() end -- aynı mesaj engelleme if ayniMesaj[source] and ayniMesaj[source] == text then outputChatBox("Aynı kelimeleri tekrarlamayınız!", source, 255, 0, 0) return else ayniMesaj[source] = text end -- kısaltma mesajlar if ayarlar.kisaltmaMesaj then for i,v in pairs ( mesajTablo ) do for k,t in pairs(i) do if text:lower() == t then text = v end end end end if typechat == 2 then cancelEvent() end -- eğer Y den yazmışsa iptal et if typechat == 0 then -- eğer T den yazmış ise if oyuncuYetkilimi(source) then -- eğer oyuncu yetkili ise local tag,chat = oyuncuYetkilimi(source) -- yetkinin tagını ve chat renklerini çek --custom tagscript local tagdata = exports["customtagpanel"]:getPlayerTagDatas(source) if tagdata then if tagdata.customtag then outputChatBox(tagdata.tag.." "..tag..isim..chat..text,root,r,g,b,true) end else--eğer yoksa data outputChatBox(tag..isim..chat..text, root, r, g, b, true ) -- chate aktar end elseif oyuncuTag then -- eğer oyuncu panelden tag almışsa local tagdata = exports["customtagpanel"]:getPlayerTagDatas(source) if tagdata then if tagdata.customtag then outputChatBox(tagdata.tag.." #ffffff"..isim..": #ffffff"..text,root,r,g,b,true) end else--eğer yoksa data outputChatBox(oyuncuTag.." "..isim.."#FFFFFF:#ededed "..text, root, r, g, b, true ) -- chate aktar end else --eğer yukardakilerden ikiside yoksa --customtag script local tagdata = exports["customtagpanel"]:getPlayerTagDatas(source) if tagdata then if tagdata.customtag then --cancelEvent() outputChatBox(tagdata.tag.." #ffffff"..isim..": #ffffff"..text,root,r,g,b,true) end else--eğer yoksa data outputChatBox(""..isim.."#FFFFFF:#FFFFFF "..text, root, r, g, b, true ) -- chate yolla end end end outputServerLog( "CHAT: " .. isim:gsub('#%x%x%x%x%x%x', '').. ": " .. text ) end)
exports["customtagpanel"]:getPlayerTagDatas(player)return gelen veri; array = { kullanan = player, tag = tag, customtag = true, }
local tagdata = exports["customtagpanel"]:getPlayerTagDatas(player)if tagdata then if tagdata.customtag then outputChatBox(tagdata.tag.." #ffffff"..getPlayerName(player)..": #ffffff"..text,root,r,g,b,true)end
İlk öncelikle eline sağlık çok güzel olmuşama panele restart attığımız zaman taglar siliniyor.onuda yaparsa daha iyi oluyor oyle düşünüyorum hayırlı geceler.
Linki görebilmek için Kayıt olun yada Giriş yapın. 'un kodlamasından anlayan bu dünyadan değildir. zaten serius'da bu dünya dan değil.