iPrestege Posted March 14, 2013 Share Posted March 14, 2013 'f12' المفروض 'F12' ماتفرق # Link to comment
3NAD Posted March 14, 2013 Share Posted March 14, 2013 aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if plrAccount and not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end فقط ذذ and كان ناقص Link to comment
iPrestege Posted March 14, 2013 Share Posted March 14, 2013 aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if plrAccount and not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end فقط ذذ and كان ناقص لا صحيح الاند مافيةة شيء ذذ بس بيجية باد ارقمنت في البايند كي لان الفنكشن تحتة ذذ Link to comment
yazan Posted March 15, 2013 Author Share Posted March 15, 2013 اخوي مشكورين بس الكلام يضهر بل شات شلون اخليه يضهر بلوحه رقم 2 وتختفي Link to comment
iPrestege Posted March 15, 2013 Share Posted March 15, 2013 لول مافهمت على لبل ولا على وش؟ Link to comment
iMr.Dawix~# Posted March 15, 2013 Share Posted March 15, 2013 اخوي مشكورين بس الكلام يضهر بل شات شلون اخليه يضهر بلوحه رقم 2 وتختفي guiSetText guiSetVisible Link to comment
][sojn][ Posted March 15, 2013 Share Posted March 15, 2013 المشكله في بعض الاعضاء يطرحون طلبات غير معقوله ما تنفهم ><" يبون درس لغه عربيه Link to comment
yazan Posted March 15, 2013 Author Share Posted March 15, 2013 المشكله في بعض الاعضاء يطرحون طلبات غير معقوله ما تنفهم ><" يبون درس لغه عربيه ههههههههههه يب بس انا مو منهم المهم قصدي يطلع على الوحه 2 كود يلي عطوطني ياه يطلع بل شات شلون يطلع على لوحه 2 Link to comment
iMr.Dawix~# Posted March 15, 2013 Share Posted March 15, 2013 المشكله في بعض الاعضاء يطرحون طلبات غير معقوله ما تنفهم ><" يبون درس لغه عربيه ههههههههههه يب بس انا مو منهم المهم قصدي يطلع على الوحه 2 كود يلي عطوطني ياه يطلع بل شات شلون يطلع على لوحه 2 اخوي مشكورين بس الكلام يضهر بل شات شلون اخليه يضهر بلوحه رقم 2 وتختفي guiSetText guiSetVisible يعني شيل الي يطلع بالشات وخل بداله يغير الكلام الي في اللبل او اي شيء جوي تستخدم guiSetText اضغط عليه8 يجيك له مثال بالويكي Link to comment
yazan Posted March 16, 2013 Author Share Posted March 16, 2013 وش غلط ؟ و شلون اضهر لوحه aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end addEvent ( "onSendDataToAll", true ) addEventHandler ( "onSendDataToAll", root, function ( Data ) if tostring ( Data ) then guiSetText ( "GUIEditor_Window[2],Label,["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) end end ) for _, v in ipairs (getElementsByType ( "player" ) ) do bindKey ( v, "f12", "down", aOpen_ ) end addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "F12", "down", aOpen_ ) end ) Link to comment
кιηg-αвα∂у Posted March 16, 2013 Share Posted March 16, 2013 طريقتك ترسل ترايقر كل ماتضغط اف12 Link to comment
yazan Posted March 16, 2013 Author Share Posted March 16, 2013 guiSetText = Client Only شلون Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 guiSetText = Client Only شلون انت مسوية سيرفر وهي كلنت ورني الكود اللوحة كاملة مع اللبل وان شاء الله اسوية لك # Link to comment
yazan Posted March 16, 2013 Author Share Posted March 16, 2013 كلنت GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) guiSetVisible(GUIEditor_Window[2],false) guiSetAlpha(GUIEditor_Window[2],1) GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) Label = guiCreateLabel(67,29,306,37,"",false,GUIEditor_Window[2]) GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) addEvent ( "onOpenDataWindow", true ) addEventHandler ( "onOpenDataWindow", root, function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible( GUIEditor_Window[1] ) ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Button[1] then local Data = guiGetText ( GUIEditor_Edit[1] ) if Data == "" then return end triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) end end ) سيرفر aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end addEvent ( "onSendDataToAll", true ) addEventHandler ( "onSendDataToAll", root, function ( Data ) if tostring ( Data ) then guiSetText ( "Label,["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) end end ) for _, v in ipairs (getElementsByType ( "player" ) ) do bindKey ( v, "f12", "down", aOpen_ ) end addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "f12", "down", aOpen_ ) end ) Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 كلنت GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) guiSetVisible(GUIEditor_Window[2],false) guiSetAlpha(GUIEditor_Window[2],1) GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) Label = guiCreateLabel(67,29,306,37,"",false,GUIEditor_Window[2]) GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) addEvent ( "onOpenDataWindow", true ) addEventHandler ( "onOpenDataWindow", root, function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible( GUIEditor_Window[1] ) ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Button[1] then local Data = guiGetText ( GUIEditor_Edit[1] ) if Data == "" then return end triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) end end ) سيرفر aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end addEvent ( "onSendDataToAll", true ) addEventHandler ( "onSendDataToAll", root, function ( Data ) if tostring ( Data ) then guiSetText ( "Label,["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) end end ) for _, v in ipairs (getElementsByType ( "player" ) ) do bindKey ( v, "f12", "down", aOpen_ ) end addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "f12", "down", aOpen_ ) end ) وينة اللبل اللي تبية يصير الكلام ذذ Link to comment
iMr.Dawix~# Posted March 16, 2013 Share Posted March 16, 2013 triggerServerEvent addEvent addEventHandler Link to comment
3NAD Posted March 16, 2013 Share Posted March 16, 2013 -- Client Side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) guiSetVisible(GUIEditor_Window[2],false) guiSetAlpha(GUIEditor_Window[2],1) GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) Label = guiCreateLabel(67,29,306,37,"",false,GUIEditor_Window[2]) GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) addEvent ( "onOpenDataWindow", true ) addEventHandler ( "onOpenDataWindow", root, function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible( GUIEditor_Window[1] ) ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Button[1] then local Data = guiGetText ( GUIEditor_Edit[1] ) if Data == "" then return end triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) end end ) addEvent ( "onSendDataToPlayers", true ) addEventHandler ( "onSendDataToPlayers", root, function ( name, data ) guiSetText ( Label, "["..name.."] : "..data ) end ) -- Server Side aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end addEvent ( "onSendDataToAll", true ) addEventHandler ( "onSendDataToAll", root, function ( Data ) if tostring ( Data ) then triggerClientEvent ( root, "onSendDataToPlayers", root, getPlayerName(source), Data ) end end ) for _, v in ipairs (getElementsByType ( "player" ) ) do bindKey ( v, "f12", "down", aOpen_ ) end addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "f12", "down", aOpen_ ) end ) Link to comment
yazan Posted March 16, 2013 Author Share Posted March 16, 2013 مشكور الحين شلون اخله الوحه تيجي لمن ارسل و تروح بعد وقت Link to comment
PaiN^ Posted March 16, 2013 Share Posted March 16, 2013 setTimer guiGetVisible guiSetVisible Link to comment
yazan Posted March 16, 2013 Author Share Posted March 16, 2013 مشكور شتغل معي مشكور برستيج و عناد و بين و كل يلي في موضع ذا ض1 Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 مشكور شتغل معي مشكور برستيج و عناد و بين و كل يلي في موضع ذا ض1 العفو ذذ Link to comment
yazan Posted March 16, 2013 Author Share Posted March 16, 2013 الوده الكود كامل ما عرف يعمل وقت و يختفي يبدل الكود ذا addEvent ( "onSendDataToPlayers", true ) addEventHandler ( "onSendDataToPlayers", root, function ( name, data ) guiSetText ( Label, "["..name.."] : "..data ) guiSetVisible(GUIEditor_Window[2],true) setTimer ( function() guiSetVisible(GUIEditor_Window[2],false) end, 1000, 1 ) end ) 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