Jump to content

طلب كود


Recommended Posts

Posted

صححوه لنا , لان صراحة تلخبط مخي ذذ

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
بملفت سيرفر حدث الضغط ع الالمنت مو مسوي تحقق ان اللى اشر عليه سياراه او لاعب

وبملف كلنت مسوي اللى يضغط حرف ال m تفتح له اللوحه

والماوز مو مسوي له اخفاء بعد اظهاره

ذا اللى لاحظته بالكود

على حسب كلامك كذا يصير

-- # Server  
  
addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then -- أسم القروب 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, p ) 
triggerServerEvent ( "check", localPlayer ) 
end 
) 
  
-- # Client 
  
function strong ( ) 
guiSetVisible (WndName, true) 
showCursor (true) 
end 
addEvent( "openre", true ) 
addEventHandler( "openre",root,strong) 
  
bindKey( "M", "down", 
function() 
showCursor (true) 
end) 

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

انا جرب ذا + اشتغل تمام

client side

function strong ( ) 
guiSetVisible (WndName, true) 
showCursor (true) 
end 
addEvent( "openGui", true ) 
addEventHandler( "openGui",root,strong) 
  
bindKey( "M", "down", 
function() 
    triggerServerEvent ( "check", localPlayer ) 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
 end) 

server side

addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local account = getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Police"))) then 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, z ) 
triggerClientEvent ( source, "openGui ,source") 
end 
  

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
انا جرب ذا + اشتغل تمام

client side

function strong ( ) 
guiSetVisible (WndName, true) 
showCursor (true) 
end 
addEvent( "openGui", true ) 
addEventHandler( "openGui",root,strong) 
  
bindKey( "M", "down", 
function() 
    triggerServerEvent ( "check", localPlayer ) 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
 end) 

server side

addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local account = getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Police"))) then 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, z ) 
triggerClientEvent ( source, "openGui ,source") 
end 
  

كيف شغال تمام

triggerClientEvent ( source, "openGui ,source") -- lol 

Edit #

triggerClientEvent ( source, "openGui",source) 

openre -- ترايقر غير مضاف ..  

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

اعتقد ذا او ذا.

triggerClientEvent ( source, "openGui", source,) 
  

-

triggerClientEvent ( source, "openGui", source ) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
اعتقد ذا او ذا.

triggerClientEvent ( source, "openGui", source,) 
  

-

triggerClientEvent ( source, "openGui", source ) 

ليه حاط فاصلة ؟

triggerClientEvent ( source, "openGui", source,) 

!!

كذا يصير

triggerClientEvent ( source, "openGui", source) 

لاهنت اذا ما تعرف لا تكتب تعليقات مالها داعي

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
اعتقد ذا او ذا.

triggerClientEvent ( source, "openGui", source,) 
  

-

triggerClientEvent ( source, "openGui", source ) 

ليه حاط فاصلة ؟

triggerClientEvent ( source, "openGui", source,) 

!!

كذا يصير

triggerClientEvent ( source, "openGui", source) 

لاهنت اذا ما تعرف لا تكتب تعليقات مالها داعي

فيه شي عندك خطا

انت عامل قوس ( مب جنب بعض source والقوس التاني جبنو

يصير كذا

triggerClientEvent ( source, "openGui", source) 

edit#

triggerClientEvent ( source, "openGui", source ) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
اعتقد ذا او ذا.

triggerClientEvent ( source, "openGui", source,) 
  

-

triggerClientEvent ( source, "openGui", source ) 

ليه حاط فاصلة ؟

triggerClientEvent ( source, "openGui", source,) 

!!

كذا يصير

triggerClientEvent ( source, "openGui", source) 

لاهنت اذا ما تعرف لا تكتب تعليقات مالها داعي

فيه شي عندك خطا

انت عامل قوس ( مب جنب بعض source والقوس التاني جبنو

يصير كذا

triggerClientEvent ( source, "openGui", source) 

edit#

triggerClientEvent ( source, "openGui", source ) 

عادي ما يفرق !!

:redhotevil:

:redhotevil:

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

مثال بسيط وان شاء الله بتفهم منه

local screenW, screenH = guiGetScreenSize() 
window = guiCreateWindow((screenW - 212) / 2, (screenH - 76) / 2, 212, 76, "", false) 
guiWindowSetSizable(window, false) 
button = guiCreateButton(9, 34, 193, 32, "اغلاق", false, window) 
---- 
guiSetVisible (window,false) 
addEvent("open",true) 
addEventHandler("open",root, function() 
guiSetVisible (window,true) 
end) 
--- 
bindKey( "m", "down", 
function() 
triggerServerEvent ( "show",localPlayer) 
end) 
------ 
addEvent("m",true) 
addEventHandler("m",root, function() 
showCursor ( not isCursorShowing ()) 
end) 
addEventHandler ("onClientGUIClick",button,function () 
guiSetVisible (window,false) 
showCursor (false) 
end,false) 

addEvent("show",true) 
addEventHandler("show",root,function () 
for _,plr in ipairs (getElementsByType("player")) do 
if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(plr )),aclGetGroup("Admin")) ) then 
triggerClientEvent(plr ,"m",plr ) 
else 
outputChatBox("Access denied",source,255,0,0) 
end 
end 
end) 
addEventHandler( "onElementClicked",root,function (x,y,z) 
if ( getElementType(source) == "player" ) then 
if (isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))) then 
triggerClientEvent(source,"open",source) 
end 
end 
end) 

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted
مثال بسيط وان شاء الله بتفهم منه

local screenW, screenH = guiGetScreenSize() 
window = guiCreateWindow((screenW - 212) / 2, (screenH - 76) / 2, 212, 76, "", false) 
guiWindowSetSizable(window, false) 
button = guiCreateButton(9, 34, 193, 32, "اغلاق", false, window) 
---- 
guiSetVisible (window,false) 
addEvent("open",true) 
addEventHandler("open",root, function() 
guiSetVisible (window,true) 
end) 
--- 
bindKey( "m", "down", 
function() 
triggerServerEvent ( "show",localPlayer) 
end) 
------ 
addEvent("m",true) 
addEventHandler("m",root, function() 
showCursor ( not isCursorShowing ()) 
end) 
addEventHandler ("onClientGUIClick",button,function () 
guiSetVisible (window,false) 
showCursor (false) 
end,false) 

addEvent("show",true) 
addEventHandler("show",root,function () 
for _,plr in ipairs (getElementsByType("player")) do 
if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(plr )),aclGetGroup("Admin")) ) then 
triggerClientEvent(plr ,"m",plr ) 
else 
outputChatBox("Access denied",source,255,0,0) 
end 
end 
end) 
addEventHandler( "onElementClicked",root,function (x,y,z) 
if ( getElementType(source) == "player" ) then 
if (isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))) then 
triggerClientEvent(source,"open",source) 
end 
end 
end) 
addEventHandler("onElementClicked", root,  
function (S, M, Player) 
    if getElementType(Player) == "player" and S == "up" and M == "left" then 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)), aclGetGroup("Admin")) then 
            triggerClientEvent(Player, "open", Player) 
        end 
    end 
end 
) 

^

 

 

Posted
addEventHandler("onElementClicked", root,  
function (S, M, Player) 
    if getElementType(Player) == "player" and S == "up" and M == "left" then 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)), aclGetGroup("Admin")) then 
            triggerClientEvent(Player, "open", Player) 
        end 
    end 
end 
) 

^

addEventHandler("onElementClicked", root, 
function (S, M, Player) 
if S == "left" and M == "down" and getElementType(source) == "player" then  
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
triggerClientEvent(Player, "open", Player) 
end 
end 
end) 

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted
addEventHandler("onElementClicked", root,  
function (S, M, Player) 
    if getElementType(Player) == "player" and S == "up" and M == "left" then 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)), aclGetGroup("Admin")) then 
            triggerClientEvent(Player, "open", Player) 
        end 
    end 
end 
) 

^

addEventHandler("onElementClicked", root, 
function (S, M, Player) 
if S == "left" and M == "down" and getElementType(source) == "player" then  
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)), aclGetGroup("Admin")) then 
triggerClientEvent(Player, "open", Player) 
end 
end 
end) 

المفروض

getAccountName(getPlayerAccount(Player)) Player

مو المصدر

لان المصدر هو الاعب المضغوط هو يبي يتحقق انه اللي ضغط هو اللي معاه ادمن ثم تفتح له اللوحة :roll:

 

 

Posted
ركزوا شوي يا شباب لانكم جايبين العيد في حدث

onElementClicked

الاكواد صح بس فعلا انا كنت غلطات فى الكود ذا

getAccountName(getPlayerAccount(Player)) --والاخ دابل وضح لى الخطاء

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

لاكن لما تجربه مع شخص راح تعرف الاخطاء

Posted (edited)
ركزوا شوي يا شباب لانكم جايبين العيد في حدث

onElementClicked

الاكواد صح بس فعلا انا كنت غلطات فى الكود ذا

getAccountName(getPlayerAccount(Player)) --والاخ دابل وضح لى الخطاء

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

لاكن لما تجربه مع شخص راح تعرف الاخطاء

جربه انت مع اي شخص وشوف

  
  
local screenW, screenH = guiGetScreenSize() 
window = guiCreateWindow((screenW - 312) / 2, (screenH - 141) / 2, 312, 141, "معلومات اللاعب", false) 
guiWindowSetSizable(window, false) 
guiSetAlpha(window, 1.00) 
label1 = guiCreateLabel(4, 26, 293, 23,'', false, window) 
label2 = guiCreateLabel(4, 45, 293, 23,'', false, window) 
label3 = guiCreateLabel(4, 70, 293, 23,'', false, window) 
button = guiCreateButton(9, 99, 293, 28, "اغلاق اللوحه", false, window) 
guiSetFont(button, "default-bold-small") 
guiSetProperty(button, "NormalTextColour", "FFA25401") 
    ---- 
guiSetVisible (window,false) 
addEvent("open",true) 
addEventHandler("open",root, function(name,Serial,ip) 
guiSetVisible (window,true) 
guiSetText(label1,'اسم اللاعب : ' ..tostring(name)) 
guiSetText(label2,'سيريال اللاعب : ' ..tostring(Serial)) 
guiSetText(label3,'الايبي : ' ..tostring(ip)) 
end) 
    --- 
bindKey( "z", "down", 
    function() 
    triggerServerEvent ( "show",localPlayer) 
    end) 
    ------ 
    addEvent("m",true) 
    addEventHandler("m",root, function() 
    showCursor ( not isCursorShowing ()) 
    end) 
    addEventHandler ("onClientGUIClick",button,function () 
    guiSetVisible (window,false) 
    showCursor (false) 
    end,false) 
for i,Label in pairs ({label1,label2,label3}) do 
guiSetFont(Label, "default-bold-small") 
guiSetProperty (Label, "TextColours", "tl:FF00FF00 tr:FF00FF00 bl:FFFF0000 br:FFFF0000") 
guiLabelSetHorizontalAlign(Label, "right", false) 
guiLabelSetVerticalAlign(Label, "center") 
end     

  addEvent("show",true) 
addEventHandler("show",root,function () 
for _,plr in ipairs (getElementsByType("player")) do 
if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(plr )),aclGetGroup("Admin")) ) then 
triggerClientEvent(plr ,"m",plr ) 
end 
end 
end) 
  
  
  addEventHandler("onElementClicked", root, 
    function (S, M, Player) 
    if S == "left" and M == "down" and getElementType(source) == "player" then 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)), aclGetGroup("Admin")) then 
    triggerClientEvent(Player, "open", Player,getPlayerName( source ),getPlayerSerial(source),getPlayerIP (source)) 
    end 
    end 
    end) 

Edited by Guest

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted
^ يختصر الوضع عشان مايطول الاكواد حقت الليبل

فاهم غلط اقصد اللوب في سطر 3

z كذا راح يقفل / يفتح الماوس لكل الاعبين كل مايضغط

يوم يضغط على الاعب ويجيب حسابه لازم تتحق ان المضغوط عليه مسجل دخوله والي ضغط بعد

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

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