Jump to content

كود الباند


Recommended Posts

دخلت عليه وجاني كود

local commandSpam = {} 
  
function preventCommandSpam() 
    if (not commandSpam[source]) then 
        commandSpam[source] = 1 
        -- New person so add to table 
    elseif (commandSpam[source] == 5) then 
        cancelEvent() 
        outputChatBox("Please refrain from command spamming!", source, 255, 0, 0) 
        -- This person is command spamming! 
    else 
        commandSpam[source] = commandSpam[source] + 1 
        -- Add one to the table 
    end 
end 
addEventHandler("onPlayerCommand", root, preventCommandSpam) 
setTimer(function() commandSpam = {} end, 1000, 0) -- Clear the table every second 

وين اكتب الامر ؟؟

Link to comment

الكود من اخوي سعد ,,

  
addEventHandler("onPlayerCommand",root,function(command) 
thecommand = command 
cmd = { 
"الامر", 
"الامر", 
"الامر", 
} 
  
for k,v in pairs(cmd) do 
    if thecommand == v then 
    outputChatBox("الكلام اللي تبيه يظهر فـ الشات", getRootElement(), 255, 0, 0, true) 
    banPlayer (source,false,false,true,root,"سبب الباند") 
    end  
    end 
end) 
  

الكود ملف سيرفر ,,

واذا حاب تزود الاوامر زود

"الامر",

وبس

:]

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...