Jump to content

طلب


Adham

Recommended Posts

سلام عليكم اانا اليوم عامل للوحةة

عاوز اللوحة متفتحش لاي حد

عاوز اللوحة تفتح للكاتب سريالو بس انا معيش الكود

مثلن عاوز كود اكتب سريال الفتحلو اللوحة

الما كاتب سريالو

ما تفتح له لوجة

Link to comment

  
local player = getLocalPlayer() 
function OpenWnd () 
if getPlayerSerial(player) == "Serial1" 
or getPlayerSerial(player) == "Serial2" 
or getPlayerSerial(player) == "Serial3" 
then 
if (guiGetVisible (window) == true) then 
guiSetVisible (window, false) 
showCursor (false) 
else 
guiSetVisible (window, true) 
showCursor (true) 
end 
else 
outputChatBox("#FF0000You are not have access to open this panel !!",0,255,255) 
end 
end 
addCommandHandler ( "open", OpenWnd ) 
Link to comment

ممكن تعملي دي

تفتح بحرف خ

بدل ف8

local player = getLocalPlayer() 
function OpenWnd () 
if getPlayerSerial(player) == "Serial1" 
or getPlayerSerial(player) == "Serial2" 
or getPlayerSerial(player) == "Serial3" 
then 
if (guiGetVisible (window) == true) then 
guiSetVisible (window, false) 
showCursor (false) 
else 
guiSetVisible (window, true) 
showCursor (true) 
end 
else 
outputChatBox("#FF0000You are not have access to open this panel !!",0,255,255) 
end 
end 
addCommandHandler ( "open", OpenWnd ) 

Link to comment
Serial = { 
["serial"] = true, 
} 
bindKey ( "o", "down", function ( ) 
if Serial[getPlayerSerial(localPlayer)] then 
guiSetVisible (window,not guiGetVisible (window)) 
showCursor (guiGetVisible (window)) 
else 
outputChatBox(" Access denied ",255, 100, 70 )  
end 
end) 
Note: The client side version of getPlayerSerial has been deprecated as it can return the wrong value for some players, and is potentially insecure. The following article assumes that the function is serverside only.

^

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