Doffy Posted June 21, 2017 Share Posted June 21, 2017 ابي فنكشنات لوحة تفتح بأف 8 ب كلمة وما تشتغل غير لرتب معينة Link to comment
AE. Posted June 21, 2017 Share Posted June 21, 2017 addCommandHandler isObjectInACLGroup triggerClientEvent addEvent addEventHandler guiSetVisible Link to comment
Doffy Posted June 21, 2017 Author Share Posted June 21, 2017 Just now, 3laa33 said: addCommandHandler isObjectInACLGroup triggerClientEvent addEvent addEventHandler guiSetVisible اخوي انا سويت اللوحة بس اللوحة تفتح لجميع اللاعبين يلي فلسيرفر --Client addCommandHandler("eve", function() triggerServerEvent("wnd", localPlayer) end) addEvent("opwnd",true) addEventHandler("opwnd",root, function(player) guiSetVisible(wnd, true) showCursor(true) end) --Server addEvent("wnd",true) addEventHandler("wnd",root, function() for _, aV in pairs ( getElementsByType 'player' ) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(aV)), aclGetGroup("Event")) then triggerClientEvent("opwnd",source) end end) Link to comment
AE. Posted June 21, 2017 Share Posted June 21, 2017 (edited) ناقصك end ف server + ليش مسوي لوب ؟ --Server function suckit(hna) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hna)), aclGetGroup("Event")) then triggerClientEvent("opwnd",source) end end addCommandHandler ("test2",suckit) Edited June 21, 2017 by 3laa33 Link to comment
Doffy Posted June 21, 2017 Author Share Posted June 21, 2017 Just now, 3laa33 said: ناقصك end ف server + ليش مسوي لوب ؟ كذا addEvent("wnd",true) addEventHandler("wnd",root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(aV)), aclGetGroup("Event")) then triggerClientEvent("opwnd",source) end end) نسيت ض2 السطر الرابع كله غلط اخوي هنا اشتغلت بس نفس المشكلة تظهر لجميع اللاعبين addEvent("wnd",true) addEventHandler("wnd",root, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Event" ) ) then triggerClientEvent("opwnd",source) end end) Link to comment
#BrosS Posted June 21, 2017 Share Posted June 21, 2017 @3laa33 triggerClientEvent ( [table/element sendTo=getRootElement()] Link to comment
AE. Posted June 21, 2017 Share Posted June 21, 2017 Just now, #BrosS said: @3laa33 triggerClientEvent ( [table/element sendTo=getRootElement()] اخطأه الكثير لغبطتني مالحظتها Link to comment
Doffy Posted June 21, 2017 Author Share Posted June 21, 2017 Just now, 3laa33 said: اخطأه الكثير لغبطتني مالحظتها الحين وش ؟ Link to comment
#LorD-.? Posted June 21, 2017 Share Posted June 21, 2017 --Server Side setTimer(function () for _, rD in pairs ( getElementsByType "player" ) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount( rD )), aclGetGroup("Group")) then if not getElementData(rD,"Data") then setElementData(rD,"Data",true) end else if getElementData(rD,"Data") then setElementData(rD,"Data",false) end end end end,1500,0) --Client Side function OpenForData () if not getElementData (localPlayer,"Data") then return end if guiGetVisible (WindowName) then guiSetVisible (WindowName,false) showCursor (false) else guiSetVisible( WindowName,true) showCursor(true) end end addCommandHandler ("Open",OpenForData) غير مجرب Link to comment
Mhmd.z Posted June 21, 2017 Share Posted June 21, 2017 4 hours ago, #Himoo said: الحين وش ؟ خلي الترايقر يلي من سيرفر لكلنت كذه triggerClientEvent(source,"opwnd",source) Link to comment
Adham Posted June 21, 2017 Share Posted June 21, 2017 (edited) ليه مسوي 2 تريقر ب كلنت ممكن تسويها كذا وليه داتا وحوسه دي جرب addEvent("opwnd",true) addEventHandler("opwnd",root, function(player) guiSetVisible(wnd, true) showCursor(true) end) addCommandHandler ( "eve", function ( player ) local acc = getPlayerAccount ( player ) if acc and not isGuestAccount ( acc ) then if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("Event")) then triggerClientEvent ( player, "opwnd", player ) end end end ) Edited June 21, 2017 by Deativated Link to comment
+Source|> Posted June 22, 2017 Share Posted June 22, 2017 (edited) ملف كلنت addEvent("opwnd", true) addEventHandler("opwnd", root, function() guiSetVisible( wnd, true ) showCursor(true) end ) ملف سيرفر function open(player) local acc = getAccountName(getPlayerAccount(player) ) if isObjectInACLGroup("user."..acc, aclGetGroup("Console")) then triggerClientEvent( player, "opwnd", player ) end end addCommandHandler("كلمة اف ٨", open) اتوقع صح ما جربته Edited June 22, 2017 by A7MEDENO Link to comment
AE. Posted June 22, 2017 Share Posted June 22, 2017 @A7MEDENO ناقص التريجر + واحد ساعده خلاص مب لازم مليون واحد يحط الحل حقه المهم انه المشكلة اتحلت 6 hours ago, #LorD-.? said: غير مجرب لما تكتب كود اضغط علي علامة <> عشان يطلع الكلام زي كدة --your code Link to comment
#LorD-.? Posted June 22, 2017 Share Posted June 22, 2017 47 minutes ago, 3laa33 said: @A7MEDENO ناقص التريجر + واحد ساعده خلاص مب لازم مليون واحد يحط الحل حقه المهم انه المشكلة اتحلت لما تكتب كود اضغط علي علامة <> عشان يطلع الكلام زي كدة --your code المره القادمة انشاء الله ^^ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now