Jump to content

طلب حل


Recommended Posts

السلام عليكم انا عندي مشكله مع المود حق جراند

هو قال ضيف هذا الكود تحت التاج حقك عشان م يسبب تكرار مع تغير التاج

local systemDBconnect = dbConnect( 'sqlite', ':TagsSystem-Professional_v01/[TAGS system] Database.db' ) 
local checkTag = dbQuery( systemDBconnect, ' SELECT * FROM `TagsSystemPro` WHERE serial = ? ', getPlayerSerial( source ) ) 
local dbValues = dbPoll( checkTag, -1 ) 
if ( type( dbValues ) == 'table' and #dbValues ~= 0 ) then 
local state = dbValues[1]['state'] 
if ( state == 'Enabled' ) then return end end 

ضفته كذا ل مود التاج حقي ولا ضبط

colorHex = function (r,g,b)   
return string.format("#%.2X%.2X%.2X",r,g,b)  
end  
outputChatBox('',root,150,150,150,true)   
addEventHandler('onPlayerChat',root,    
function(text,type) 
local systemDBconnect = dbConnect( 'sqlite', ':TagsSystem-Professional_v01/[TAGS system] Database.db' ) 
local checkTag = dbQuery( systemDBconnect, ' SELECT * FROM `TagsSystemPro` WHERE serial = ? ', getPlayerSerial( source ) ) 
local dbValues = dbPoll( checkTag, -1 ) 
if ( type( dbValues ) == 'table' and #dbValues ~= 0 ) then 
local state = dbValues[1]['state'] 
if ( state == 'Enabled' ) then return end end 
cancelEvent() 
for i,v in pairs(Tags) do  
if ( string.find(text,v) ) then 
cancelEvent()   
return outputChatBox('error',source,255,0,0,true)   
end   
end   
if ( isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(source)),aclGetGroup('Console')) ) then   
cancelEvent()   
return outputChatBox(' '..getPlayerName(source)..''..text..'',root,255,255,255,true)  
end   

Link to comment
timer = {}  
addCommandHandler("77",  
function (player)  
if hasObjectPermissionTo(player,"command.mute",true) then  
if isTimer(timer[player]) then outputChatBox("",player,255,0,0) return end  
for i=1,40 do  
outputChatBox(" ")  
end  
outputChatBox(" " .. getPlayerName(player) .. "",root,255,0,0,true)  
timer[player] = setTimer(function () end,5000,1)  
else  
outputChatBox("",player,255,0,0)  
end  
end  
)  
local Tags = { } 
local flood = { }   
colorHex = function (r,g,b)   
return string.format("#%.2X%.2X%.2X",r,g,b)  
end  
outputChatBox('!',root,150,150,150,true)   
addEventHandler('onPlayerChat',root,    
function(text,type) 
cancelEvent() 
for i,v in pairs(Tags) do  
if ( string.find(text,v) ) then 
cancelEvent()   
return outputChatBox(' ',source,255,0,0,true)   
end   
end   
if ( isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(source)),aclGetGroup('Console')) ) then   
cancelEvent()   
return outputChatBox('Admin: '..getPlayerName(source)..': '..text..'',root,255,255,255,true)  
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...