Jump to content

طلب فنكشن


Recommended Posts

?????????????
bindkey("F1",down,window, 
function() 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
guiSetVisible(window,true) 
showCursor ( true ) 
end 
end) 

guiSetVisible == server SIDE ? :?

showCursor == server SIDE :o

-- تسوي ترايقر للكلنت بعد التحقق من أن الاعب بالقروب المحدد ...

triggerClientEvent 
if -- للتحقق من أن الهدف هو الاعب المحلي 
guiSetVisible -- تسوي إظهار للوحة بعد التحقق 
  
showCursor -- تسوي إظهار الماوس ^ 

Edited by Guest
Link to comment
--server 
  
bindkey("F1",down,window, 
function() 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
triggerClientEvent(sourc,"open") 
end 
end) 
  
--client 
function open() 
guiSetVisibe(window,true) 
showCursor(true) 
end 
addEevent("open",true) 
addEeventHandler("open",source,open) 

Now??

Link to comment
--server 
  
bindkey("F1",down,window, 
function() 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
triggerClientEvent(sourc,"open") 
end 
end) 
  
--client 
function open() 
guiSetVisibe(window,true) 
showCursor(true) 
end 
addEevent("open",true) 
addEeventHandler("open",source,open) 

Now??

--server 
  
bindkey("F1",down,window, 
function() 
local accName = getPlayerAccount( source ) 
if (not accName or isGuestAccount) then return 
else 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
triggerClientEvent(source,"open") 
end 
end 
end) 
  
--client 
function open( local_P ) 
if (local_P == localPlayer) then 
guiSetVisibe(window,true) 
showCursor(true) 
end 
end 
addEevent("open",true) 
addEeventHandler("open",source,open) 
Link to comment
--server 
  
bindkey("F1",down,window, 
function() 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
triggerClientEvent(sourc,"open") 
end 
end) 
  
--client 
function open() 
guiSetVisibe(window,true) 
showCursor(true) 
end 
addEevent("open",true) 
addEeventHandler("open",source,open) 

Now??

--server 
  
bindkey("F1",down,window, 
function() 
local accName = getPlayerAccount( source ) 
if (not accName or isGuestAccount) then return 
else 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
triggerClientEvent(source,"open") 
end 
end 
end) 
  
--client 
function open( local_P ) 
if (local_P == localPlayer) then 
guiSetVisibe(window,true) 
showCursor(true) 
end 
end 
addEevent("open",true) 
addEeventHandler("open",source,open) 

thank you :D

Link to comment
^

حياك الله ^^

!! كودك فيه اغلاط

يصير كذا

#Server Side

bindKey ( "الزر الي تبيه", "down", function ( player ) 
local Account = getAccountName ( getPlayerAccount ( player ) ) 
    if not ( Account ) or isGuestAccount ( Account ) then return end 
        if ( isObjectInACLGroup ( "user."..Account, aclGetGroup ( "الرتبه الي تبيها" ) ) ) then 
            triggerClientEvent ( player, "OpenWindow", player ) 
        end 
    end  
) 

#Client Side

addEvent ( "OpenWindow", true ) 
addEventHandler ( "OpenWindow", root,  
    function (    ) 
            guiSetVisible ( اسم النافذهـ, true ) 
        showCursor ( true ) 
    end 
) 
Edited by Guest
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...