Jump to content

طلب كود


Adham

Recommended Posts

سلام عليكم

انا عامل قريد لست وضايف فيه اكل

عاوز اليحدد علي واحد اكل

يجيلو اكل ب2500 ج

ولو معهوش فلوس

يجيلو * You dont Have money

بعدين عاوز

لو محددش

خاجه في القريد لست

وداس علي ال button

تختفي اللوحة

Link to comment

المشكله

addEventHandler("onClientGUIClick",GUIEditor.button[1],function () 
guiGetText(GUIEditor.edit[1])) 
if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 and guiGridListGetItemText ( GUIEditor.gridlist[1] ) then 
guiSetEnabled (GUIEditor.button[1],false) 
setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) 
end 
end 
end) 

Link to comment
  
-- Server 
Groups = {  
"Console", 
"Admin", 
"support", 
} 
  
function OnPlayerACL ( player ) 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
    for _, v in ipairs ( Groups ) do 
   if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then  
  triggerClientEvent(player,'ClrChat',player) 
   end 
  end 
end 
  
  
  

  
--Client 
addEvent('ClrChat',true) 
addEventHandler('ClrChat',root, 
function () 
-- You'r Code 
end 
) 
  

Edited by Guest
Link to comment
  
-- Server 
Groups = {  
"Console", 
"Admin", 
"support", 
} 
  
function OnPlayerACL ( player ) 
 for _, v in ipairs ( Groups ) do 
 local accName = getAccountName ( getPlayerAccount ( player ) ) 
   if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then  
     triggerClientEvent ( player, "ClrChat", player ) 
   end 
  end 
end 
  
  
  

  
--Client 
addEvent('ClrChat',true) 
addEventHandler('ClrChat',root, 
function () 
-- You'r Code 
end 
) 
  

حتى ما يجيب أسم اللاعب كل مره يمر بال loop :

function OnPlayerACL ( player ) 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
    for _, v in ipairs ( Groups ) do 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then 
            triggerServerEvent(player,'ClrChat',player) 
        end 
    end 
end 

Edited by Guest
Link to comment

ايه المشكله

Groups = { 
"Console", 
"Admin", 
"support", 
} 
  
function OnPlayerACL ( player ) 
 for _, v in ipairs ( Groups ) do 
 local accName = getAccountName ( getPlayerAccount ( player ) ) 
   if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then 
     triggerClientEvent ( player, "Clear", player ) 
   end 
  end 
end 

كلنت

addEventHandler ("onClientGUIClick",GUIEditor.button[1], 
function () 
if guiGetText (GUIEditor.edit[1]) == "/Clear" then return 
triggerServerEvent ("Clear",localPlayer,getPlayerName(localPlayer)) 
end 
--sendMessage code 
end) 
  
addEvent ("CLEAR",true) 
addEventHandler ("CLEAR",root, 
function (name) 
guiGridListClear (GUIEditor.gridlist[1]) 
rw = guiGridListAddRow (GUIEditor.gridlist[1]) 
guiGridListSetItemText (GUIEditor.gridlist[1],rw,1," "..name.." - Cleard Chat",false,false) 
guiGridListSetItemColor(GUIEditor.gridlist[1],rw, 1, 0, 227, 254, 255) 
end) 

Link to comment
  
Groups = { 
"Console", 
"Admin", 
"support" 
} 
  
function OnPlayerACL ( player ) 
 local accName = getAccountName ( getPlayerAccount ( player ) ) 
 for _, v in ipairs ( Groups ) do 
   if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then 
     triggerClientEvent ( player, "Clear", player ) 
   end 
  end 
end 
  

  
-- Client 
addEvent('Clear',true) 
  
  
function Cleared () 
if guiGetText (GUIEditor.edit[1]) == "/Clear" then 
if source == GUIEditor.button[1] then 
guiGridListClear (GUIEditor.gridlist[1]) 
rw = guiGridListAddRow (GUIEditor.gridlist[1]) 
guiGridListSetItemText (GUIEditor.gridlist[1],rw,1," "..getPlayerName(source).." - Cleard Chat",false,false) 
guiGridListSetItemColor(GUIEditor.gridlist[1],rw, 1, 0, 227, 254, 255) 
end 
end 
end 
addEventHandler ("CLEAR",root,Cleared) 
addEventHandler ("onClientGUIClick",root,Cleared) 
  

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