Jump to content

طلب


Maksoud

Recommended Posts

السلام عليكم و رحمة الله و بركاته ;

كيفكم شباب عساكم الله بخير

انا بدى كود او سؤال بحاول اوضحلكم

acl = get('aclName') 
  
function windopen(presser) 
 local accountName = getAccountName(getPlayerAccount(presser)) 
    if isObjectInACLGroup("user.".. accountName, aclGetGroup(acl)) then 
    triggerClientEvent ('openWind',root) 
    end 
end 
  
  
addEventHandler ('onPlayerLogin',root, 
function() 
bindKey (source,'m','down',windopen) 
 local accountName = getAccountName(getPlayerAccount(source)) 
    if isObjectInACLGroup("user.".. accountName, aclGetGroup(acl)) then 
outputChatBox ('Press [M] To Open your Police Panel',source) 
end 
end) 

السؤال : فى تريجر كلاينت :

وش اسوي بالكلاينت ابى كود كامل لو سمحتم و الرد السريع

Link to comment
السلام عليكم و رحمة الله و بركاته ;

كيفكم شباب عساكم الله بخير

انا بدى كود او سؤال بحاول اوضحلكم

acl = get('aclName') 
  
function windopen(presser) 
 local accountName = getAccountName(getPlayerAccount(presser)) 
    if isObjectInACLGroup("user.".. accountName, aclGetGroup(acl)) then 
    triggerClientEvent ('openWind',root) 
    end 
end 
  
  
addEventHandler ('onPlayerLogin',root, 
function() 
bindKey (source,'m','down',windopen) 
 local accountName = getAccountName(getPlayerAccount(source)) 
    if isObjectInACLGroup("user.".. accountName, aclGetGroup(acl)) then 
outputChatBox ('Press [M] To Open your Police Panel',source) 
end 
end) 

السؤال : فى تريجر كلاينت :

وش اسوي بالكلاينت ابى كود كامل لو سمحتم و الرد السريع

ونحن كيف ندري :lol:

Link to comment

وين الغلط

Client :

addEvent("OpenAdminManager", true) 
addEventHandler("OpenAdminManager", root, 
function() 
    guiSetVisible(wnd, not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
end) 
bindKey("m", "down", "Console") 

Server :

  
addCommandHandler("Console", 
function(player)   
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console")) then 
        triggerClientEvent(player, "OpenAdminManager", player)   
    end 
end) 
  
addEventHandler("onPlayerLogin", root, 
function(_, account) 
    setElementData(source, "Account", getAccountName(account)) 
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...