Jump to content

مساعده


POWR

Recommended Posts

ابي

كود اظهر فيه اسم التيم لكل لعاب قدآم نكه

مثآل

[~~KSA-1~~]<<<التيم KaBoS <<<النك نيم 

طبعآ ابي الاتيم يجي بلون الي هو محدد له

وابي ادمجه مع هذا

local lastChatMessage = {} 
  
function OnChat( message, messageType ) 
if lastChatMessage[source] and lastChatMessage[source] == message then 
outputChatBox("Stop repeating yourself!", source, 255, 0, 0) 
cancelEvent() 
return end 
lastChatMessage[source] = message 
if (hasObjectPermissionTo ( source, "command.HeadAdmin", false ) ) then 
if messageType == 0 then 
    cancelEvent() 
        local playerName = getPlayerName ( source ) 
        local ID = getElementData ( source, "ID" ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local color = string.format("#%02X%02X%02X", r, g, b) 
        outputChatBox("* #A5A5A5[".. ID.. "] #00FF00[HeadAdmin]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) 
end 
elseif ( hasObjectPermissionTo ( source, "command.HeadModerator", false ) ) then 
if messageType == 0 then 
    cancelEvent() 
        local playerName = getPlayerName ( source ) 
        local ID = getElementData ( source, "ID" ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local color = string.format("#%02X%02X%02X", r, g, b) 
        outputChatBox("* #A5A5A5[".. ID.. "] #666362[HeadModerator]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) 
end 
elseif ( hasObjectPermissionTo ( source, "command.SuperModerator", false ) ) then 
if messageType == 0 then 
    cancelEvent() 
        local playerName = getPlayerName ( source ) 
        local ID = getElementData ( source, "ID" ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local color = string.format("#%02X%02X%02X", r, g, b) 
        outputChatBox("* #A5A5A5[".. ID.. "] #00ff00[superModerator]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) 
end 
elseif ( hasObjectPermissionTo ( source, "command.Moderator", false ) ) then 
if messageType == 0 then 
    cancelEvent() 
        local playerName = getPlayerName ( source ) 
        local ID = getElementData ( source, "ID" ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local color = string.format("#%02X%02X%02X", r, g, b) 
        outputChatBox("* #A5A5A5[".. ID.. "] #00FF00[Moderator]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) 
end 
elseif ( hasObjectPermissionTo ( source, "command.V.I.P", false ) ) then 
if messageType == 0 then 
    cancelEvent() 
        local playerName = getPlayerName ( source ) 
        local ID = getElementData ( source, "ID" ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local color = string.format("#%02X%02X%02X", r, g, b) 
        outputChatBox("* #A5A5A5[".. ID.. "] #FF6400[VIP]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),255,100,0, true) 
end 
elseif not ( hasObjectPermissionTo ( source, "command.kick", false ) ) then 
if messageType == 0 then 
    cancelEvent() 
        local playerName = getPlayerName ( source ) 
        local ID = getElementData ( source, "ID" ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local color = string.format("#%02X%02X%02X", r, g, b) 
        outputChatBox("#A5A5A5[".. ID.. "]".. color.. " ".. playerName.. ": #E0D0B0" ..message, getRootElement(),0,255,0, true) 
        end 
    end 
end 
addEventHandler("onPlayerChat", root, OnChat) 
  
function quitHandler() 
    lastChatMessage[source] = nil 
end 
addEventHandler('onPlayerQuit', root, quitHandler) 

و الادمن ابي اغير مكان

ID

الي التيم

والي يساعدني الله يوفقه

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...