[YARDIM] Mute Sorunu

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı serkan60

  • Yeni Üye
  • *
    • İleti: 73
: 08 Ekim 2019, 20:25:09
merhaba arkadaşlar elimde böyle bir script kodu var fakat sadece kick ve ban için ben bunların içine bir de  mute yazmak istiyorum yani belirli bir grubun içindeki yetkili ne ban ne mute ne de kick yemeyecek  yardımcı olurmusunuz:

Kod
addEvent ( "aPlayer", true )
addEventHandler ( "aPlayer", _root, function ( player, action, data, additional, additional2 )
if checkClient( "command."..action, source, 'aPlayer', action ) then return end
if not isElement( player ) then
return -- Ignore if player is no longer valid
end
if ( hasObjectPermissionTo ( source, "command."..action ) ) then
local admin = source
local mdata = ""
local more = ""
if ( action == "kick" ) then
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("Serkan")) then
return outputChatBox ( "Kurucuyu Kickleyemezsin.", source, 255, 100, 70 ) and
                   outputDebugString (getPlayerName( source ):gsub('#%x%x%x%x%x%x', '').." Yetkiliyi kicklemeye calisti" )
end
local reason = data or ""
mdata = reason~="" and ( "(" .. reason .. ")" ) or ""
local isAnonAdmin = getElementData(source, "AnonAdmin")
if isAnonAdmin then
setTimer ( kickPlayer, 100, 1, player, root, reason )
else
setTimer ( kickPlayer, 100, 1, player, source, reason )
end
elseif ( action == "ban" ) then
local reason = data or ""
local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional)
local bUseSerial = additional2
local isAnonAdmin = getElementData(source, "AnonAdmin")
mdata = reason~="" and ( "(" .. reason .. ")" ) or ""
more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or ""
if bUseSerial and getPlayerName ( player ) and not isAnonAdmin then
-- Add banned player name to the reason
reason = reason .. " (nick: " .. getPlayerName ( player ) .. ")"
end
-- Add account name of banner to the reason
local adminAccountName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("Serkan")) then
    return outputChatBox ( "Kurucuyu Banlayamazsın.", source, 255, 100, 70 ) and
                      outputDebugString (getPlayerName( source ):gsub('#%x%x%x%x%x%x', '').." Yetkiliyi banlamaya calisti" )
end

admin_server.lua içine yazılı kod
« Son Düzenleme: 18 Ocak 2020, 16:49:52 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Mute Sorunu
« : 08 Ekim 2019, 20:25:09 »