[YARDIM] Admintag Sistemine Teamsay Ekleme

Ky · 3 · 1216

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Ky

  • Uzman Üye
  • *
    • İleti: 614
: 05 Aralık 2018, 15:12:57
Arkadaşlar aşağıdaki kodlarda teamsay eklermsiiniz admin-tag scriptinin içine teamsay eklicem yardımcı olurmusnuz
Kod: lua
function chatbox( text, type)
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
 cancelEvent()
        local r, g, b = getPlayerNametagColor(source)
        outputChatBox("#FFFFFF #000000▄▀▄▀▄ #990000Kurucu#000000 ▄▀▄▀▄#99FFFF  " .. getPlayerName ( source ) .. ":#0099FF " .. text, getRootElement(), r, g, b, true )
        outputServerLog("CHAT: [kurucu] " .. getPlayerName ( source ) .. ": " .. text)

    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then
 cancelEvent()
        local r, g, b = getPlayerNametagColor(source)
        outputChatBox("#FF0000 [!] #ffffff Server Yöneticisi - #009966  " .. getPlayerName ( source ) ..":#FF9900 " .. text, getRootElement(), r, g, b, true )
        outputServerLog("CHAT: [Mod] " .. getPlayerName ( source ) .. ": " .. text)

    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then
 cancelEvent()
        local r, g, b = getPlayerNametagColor(source)
        outputChatBox("#FFFFFF #000000˙·٠•●●•٠·#00FF00Smod#000000·٠•●●•٠·˙#99FFFF  " .. getPlayerName ( source ) ..":#00FF33 " .. text, getRootElement(), r, g, b, true )
        outputServerLog("CHAT: [Smod] " .. getPlayerName ( source ) .. ": " .. text)

    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then
 cancelEvent()
        local r, g, b = getPlayerNametagColor(source)
        outputChatBox("#FF0000 [!] #ffffff Destek - #009966  " .. getPlayerName ( source ) ..":#FF9900 " .. text, getRootElement(), r, g, b, true )
        outputServerLog("CHAT: [Mod] " .. getPlayerName ( source ) .. ": " .. text)

  elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then
 cancelEvent()
        local r, g, b = getPlayerNametagColor(source)
        outputChatBox("#00EE00  ۩#FFFFFF✤#00EE00۩ #FF0000[MAKT]#FFFFFF #00EE00۩#FFFFFF✤#00EE00۩  #FFFFFF  " .. getPlayerName ( source ) ..":#CDCDCD " .. text, getRootElement(), r, g, b, true )
        outputServerLog("CHAT: [Uye] " .. getPlayerName ( source ) .. ": " .. text)

        elseif type == 0 then
        cancelEvent ( )
        local r, g, b = getPlayerNametagColor(source)
        outputChatBox ( " " .. getPlayerName ( source ) .. ":#FF6633 " .. text, getRootElement(), r, g, b, true )
        outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )

end
end
addEventHandler("onPlayerChat", getRootElement(), chatbox)
« Son Düzenleme: 05 Aralık 2018, 15:40:21 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Admintag Sistemine Teamsay Ekleme
« : 05 Aralık 2018, 15:12:57 »

Çevrimdışı Mahlukat

  • Uzman Üye
  • *
    • İleti: 637
Yanıtla #1 : 05 Aralık 2018, 21:17:12
Kod: lua
function chatbox(text, tip)
cancelEvent()
local hesapisim = getAccountName(getPlayerAccount(source))
local r, g, b = getPlayerNametagColor(source)
local isim = getPlayerName ( source )
if tip == 0 then
if isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Console")) then
outputChatBox("#FFFFFF #000000▄▀▄▀▄ #990000Kurucu#000000 ▄▀▄▀▄#99FFFF  " ..isim.. ":#0099FF " .. text, root, r, g, b, true )
outputServerLog("CHAT: [kurucu] " ..isim.. ": " .. text)
elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Admin")) then
outputChatBox("#FF0000 [!] #ffffff Server Yöneticisi - #009966  " ..isim..":#FF9900 " .. text, root, r, g, b, true )
outputServerLog("CHAT: [Mod] " ..isim.. ": " .. text)
elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("SuperModerator")) then
outputChatBox("#FFFFFF #000000˙·٠•●●•٠·#00FF00Smod#000000·٠•●●•٠·˙#99FFFF  " ..isim..":#00FF33 " .. text, root, r, g, b, true )
outputServerLog("CHAT: [Smod] " ..isim.. ": " .. text)
elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Moderator")) then
outputChatBox("#FF0000 [!] #ffffff Destek - #009966  " ..isim..":#FF9900 " .. text, root, r, g, b, true )
outputServerLog("CHAT: [Mod] " ..isim.. ": " .. text)
elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Everyone")) then
outputChatBox("#00EE00  ۩#FFFFFF✤#00EE00۩ #FF0000[MAKT]#FFFFFF #00EE00۩#FFFFFF✤#00EE00۩  #FFFFFF  " ..isim..":#CDCDCD " .. text, root, r, g, b, true )
outputServerLog("CHAT: [Uye] " ..isim.. ": " .. text)
else
outputChatBox ( " " ..isim.. ":#FF6633 " .. text, root, r, g, b, true )
outputServerLog( "CHAT: " ..isim.. ": " .. text )
end
elseif tip == 2 then
local takim = getPlayerTeam(source)
if takim then
local takimisim = getTeamName(takim)
for i,takimo in pairs(getPlayersInTeam(takim)) do
outputChatBox ("("..takimisim..") " ..isim.. ":#FF6633 " .. text, takimo, r, g, b, true )
end
end
end
end
addEventHandler("onPlayerChat", getRootElement(), chatbox)
Linki görebilmek için Kayıt olun yada Giriş yapın.
 


Çevrimdışı Ky

  • Uzman Üye
  • *
    • İleti: 614
Yanıtla #2 : 05 Aralık 2018, 22:02:06
Çok Teşekkür Ederim Oldu