0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function tagSifirla()local oyuncu = getPlayerAccount(source)local hesap = getAccountName(oyuncu)if isObjectInACLGroup("user."..hesap, aclGetGroup("Kurucu")) thensetAccountData(oyuncu, "tag", "Kurucu")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("Admin")) thensetAccountData(oyuncu, "tag", "Admin")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("SuperModerator")) thensetAccountData(oyuncu, "tag", "SuperModerator")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("Moderator")) thensetAccountData(oyuncu, "tag", "Moderatör")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("Everyone")) thensetAccountData(oyuncu, "tag", "oyuncu")endendaddEventHandler("onPlayerJoin", getRootElement(), tagSifirla)addEventHandler("onPlayerLogin", getRootElement(), tagSifirla)addEventHandler("onPlayerLogout", getRootElement(), tagSifirla)
if tagData == "Kurucu" thenoutputChatBox("#00c0ffKurucu#1C90E1 #000000| #FFFFFF"," #FFFFFF:#FF0000 "..getPlayerName(source).." #ffffff:#ff0000"..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)elseif tagData == "Admin" thenoutputChatBox("#00FF99Admin #000000| #FFFFFF"," #FFFFFF:#66CCFF "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)elseif tagData == "SuperModerator" thenoutputChatBox("#FF6600SüperModeratör #000000| #FFFFFF"," #FFFFFF:#00FFF2 "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)elseif tagData == "Moderatör" thenoutputChatBox("#9999CCModeratör #000000| #FFFFFF"," #FFFFFF:#9999CC "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)
if tagData == "Kurucu" then
function tagSifirla()local oyuncu = getPlayerAccount(source)local hesap = getAccountName(oyuncu)if isObjectInACLGroup("user."..hesap, aclGetGroup("Console")) thensetAccountData(oyuncu, "tag", "KurucuTag")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("Admin")) thensetAccountData(oyuncu, "tag", "AdminTag")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("SuperModerator")) thensetAccountData(oyuncu, "tag", "SuperModeratorTag")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("Moderator")) thensetAccountData(oyuncu, "tag", "ModeratotTag")elseif isObjectInACLGroup("user."..hesap, aclGetGroup("Everyone")) thensetAccountData(oyuncu, "tag", "oyuncu")endendaddEventHandler("onPlayerJoin", getRootElement(), tagSifirla)addEventHandler("onPlayerLogin", getRootElement(), tagSifirla)addEventHandler("onPlayerLogout", getRootElement(), tagSifirla)function chatbox(mesaj, type)cancelEvent()local tagData = getAccountData(getPlayerAccount(source), "tag")if tagData == "KurucuTag" thenoutputChatBox("#00c0ffKurucu#1C90E1 #000000| #FFFFFF"," #FFFFFF:#FF0000 "..getPlayerName(source).." #ffffff:#ff0000"..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)elseif tagData == "AdminTag" thenoutputChatBox("#00FF99Admin #000000| #FFFFFF"," #FFFFFF:#66CCFF "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)elseif tagData == "SuperModeratorTag" thenoutputChatBox("#FF6600SüperModeratör #000000| #FFFFFF"," #FFFFFF:#00FFF2 "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)elseif tagData == "ModeratotTag" thenoutputChatBox("#9999CCModeratör #000000| #FFFFFF"," #FFFFFF:#9999CC "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)outputServerLog(getPlayerName(source)..": " ..mesaj)
--[[//server-side dizimine gönderilecek;Tag Bilgileri--]]tagBilgileri = {--[[//örnek kod dizimiNo = {td = "Değer",},--]] [1] = {td = "Hırsız",}, [2] = {td = "Polis",}, [3] = {td = "Asker",}, [4] = {td = "JÖH",},}
outputChatBox("#00c0ffKurucu#1C90E1 #000000| #FFFFFF:#FF0000 "..getPlayerName(source).." #ffffff:#ff0000"..mesaj, getRootElement(), 255, 0, 0, true)
outputChatBox("#FF6600SüperModeratör #000000| #FFFFFF:#00FFF2 "..getPlayerName(source).." #ffffff:#ffffff "..mesaj, getRootElement(), 255, 0, 0, true)
elseif tagData == "oyuncu" then