MA[S]RIY Posted May 25, 2017 Share Posted May 25, 2017 السلام عليكم وش الغلط في ذا الكود --server local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function () triggerClientEvent(source, "trig", source) end ) --client wnd = guiCreateWindow(170,139,520,238,".::[وظيفه القطاار|Train mission]::.",false) image = guiCreateStaticImage(9,24,129,131,"images.png",false,wnd) Memo = guiCreateMemo(145,19,366,156,"السلام عليكم\n----------------------------------------------------\nوظيفه القطاار\nلبداء المهمه اضغط زر دخول\nسيتم نقلك إلي القطار\nيجب عليك الوصول إلي المحطه بسلام\n-----------------------------------------------------\n للخروج اكتب باف 8\ndistrain\n",false,wnd) buttr1 = guiCreateButton(9,195,179,32,"دخول",false,wnd) buttr2 = guiCreateButton(333,195,178,32,"خروج",false,wnd) Label = guiCreateLabel(218,175,76,17,"By MA[S]RIY",false,wnd) guiLabelSetColor(Label,255,0,0) guiSetFont(Label,"default-bold-small") guiSetVisible(wnd,false) ------------------------------------------------------------------------------------------------------------ addEvent("trig", true) addEventHandler("trig", root, function() guiSetVisible ( wnd, true ) showCursor ( true ) end ) ذا الكود لما يدخل الماركر يفتح له لوحه ادخل الماركر م تفتح ليش ؟ Link to comment
^iiEcoo'x_) Posted May 25, 2017 Share Posted May 25, 2017 addEventHandler ( 'onMarkerHit' , root , function ( aPlr_ ) if ( getElementType ( ... ) == '...' ) then if source == aMarker then -- your code end end end ) Link to comment
Master_MTA Posted May 25, 2017 Share Posted May 25, 2017 8 minutes ago, MARIY said: السلام عليكم وش الغلط في ذا الكود --server local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function () triggerClientEvent(source, "trig", source) end ) --client wnd = guiCreateWindow(170,139,520,238,".::[وظيفه القطاار|Train mission]::.",false) image = guiCreateStaticImage(9,24,129,131,"images.png",false,wnd) Memo = guiCreateMemo(145,19,366,156,"السلام عليكم\n----------------------------------------------------\nوظيفه القطاار\nلبداء المهمه اضغط زر دخول\nسيتم نقلك إلي القطار\nيجب عليك الوصول إلي المحطه بسلام\n-----------------------------------------------------\n للخروج اكتب باف 8\ndistrain\n",false,wnd) buttr1 = guiCreateButton(9,195,179,32,"دخول",false,wnd) buttr2 = guiCreateButton(333,195,178,32,"خروج",false,wnd) Label = guiCreateLabel(218,175,76,17,"By MA[S]RIY",false,wnd) guiLabelSetColor(Label,255,0,0) guiSetFont(Label,"default-bold-small") guiSetVisible(wnd,false) ------------------------------------------------------------------------------------------------------------ addEvent("trig", true) addEventHandler("trig", root, function() guiSetVisible ( wnd, true ) showCursor ( true ) end ) ذا الكود لما يدخل الماركر يفتح له لوحه ادخل الماركر م تفتح ليش ؟ لانك مسوي الماركر هو اللي بتفتحله اللوحه +_+ addEventHandler("onMarkerHit",Marker1, function (plr) triggerClientEvent(plr, "trig", plr) end ) Link to comment
#STZ Posted May 25, 2017 Share Posted May 25, 2017 (edited) @MARIY السورس في كودك هو الماركر addEventHandler("onMarkerHit",Marker1,function(Player) function () triggerClientEvent(Player, "trig", Player) end ) Edited May 25, 2017 by MR.NaiF-MTA Link to comment
^iiEcoo'x_) Posted May 25, 2017 Share Posted May 25, 2017 3 minutes ago, MR.NaiF-MTA said: @MARIY السورس في كودك هو الماركر addEventHandler("onMarkerHit",Marker1,function(Player) function () triggerClientEvent(Player, "trig", Player) end ) XXXXXX Link to comment
#BrosS Posted May 25, 2017 Share Posted May 25, 2017 5 minutes ago, MR.NaiF-MTA said: @MARIY السورس في كودك هو الماركر addEventHandler("onMarkerHit",Marker1,function(Player) function () triggerClientEvent(Player, "trig", Player) end ) function ثنين ؟ Link to comment
^iiEcoo'x_) Posted May 25, 2017 Share Posted May 25, 2017 1 minute ago, #BrosS said: function ثنين ؟ زيادة الخير خيرين Link to comment
#BrosS Posted May 25, 2017 Share Posted May 25, 2017 Just now, #_iMr.[E]coo said: زيادة الخير خيرين هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه، --- F_F بديت احس ان هو و متعلمين في مدرسة واحدة لا اقصد الاهانة نايف اعرف انه غطأ مطبعي الكل يغلط Link to comment
MR.StoRm Posted May 25, 2017 Share Posted May 25, 2017 49 minutes ago, #_iMr.[E]coo said: addEventHandler ( 'onMarkerHit' , root , function ( aPlr_ ) if ( getElementType ( ... ) == '...' ) then if source == aMarker then -- your code end end end ) ما يحتاج تسوي تحقق للماركر ادري بيظبط بس ما يحتاج @#_iMr.[E]coo Link to comment
^iiEcoo'x_) Posted May 25, 2017 Share Posted May 25, 2017 1 hour ago, MR.StoRm said: ما يحتاج تسوي تحقق للماركر ادري بيظبط بس ما يحتاج @#_iMr.[E]coo ادري ، بس لازم هو يسوي كذا عشان ما يطلع شي بالدي بوق addEventHandler ( 'onMarkerHit' , marker , function ( plr ) if getElementType ( plr ) == 'player' then ouputChatBox ( ' hi ' , plr ) end end , false ) Link to comment
Master_MTA Posted May 25, 2017 Share Posted May 25, 2017 47 minutes ago, #_iMr.[E]coo said: ادري ، بس لازم هو يسوي كذا عشان ما يطلع شي بالدي بوق addEventHandler ( 'onMarkerHit' , marker , function ( plr ) if getElementType ( plr ) == 'player' then ouputChatBox ( ' hi ' , plr ) end end , false ) تدري حتى لو انه بسياره بتفتح معه اللوحه بطريقتك Link to comment
Adham Posted May 25, 2017 Share Posted May 25, 2017 لين يخش ع مركر يفتح له لوحه ؟ بسيطه addEventHandler ( "onClientMarkerHit", Marker, function (hitPlayer) if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then guiSetVisible( NameWnd,true ) showCursor ( true ) end end ) Link to comment
MA[S]RIY Posted May 25, 2017 Author Share Posted May 25, 2017 (edited) شباب ابي احد يعدل ع الكود حقي وبس #Edit: Deleted Edited May 25, 2017 by !#NssoR_) هذا الموضوع مخصص لمشكلتك الاولي وليس لأكثر من مشكلة Link to comment
#STZ Posted May 28, 2017 Share Posted May 28, 2017 local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function (player) triggerClientEvent(player, "trig", player) end ) جرب كلاينت Link to comment
#Soking Posted May 28, 2017 Share Posted May 28, 2017 51 minutes ago, MR.NaiF-MTA said: local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function (player) triggerClientEvent(player, "trig", player) end ) جرب كلاينت كوودك بيطلع دي بق لو لمسه شي غير الاعب Link to comment
#STZ Posted May 28, 2017 Share Posted May 28, 2017 (edited) @#Soking local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function (player) if getElementType(player) == 'player' and not isPedInVehicle(player) triggerClientEvent(player, "trig", player) end end ) Edited May 28, 2017 by MR.NaiF-MTA 1 Link to comment
Master_MTA Posted May 28, 2017 Share Posted May 28, 2017 23 minutes ago, MR.NaiF-MTA said: @#Soking local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function (player) if getElementType(player) == 'player' and not isPedInVehicle(player) triggerClientEvent(player, "trig", player) end end ) هذا سيرفر مب كلينت يقلببي +ناقصك then Link to comment
#STZ Posted May 28, 2017 Share Posted May 28, 2017 @Master_MTA ادري انه سيرفر مسويله ترايقر للكلاينت + اسف نسيت ال then Link to comment
Master_MTA Posted May 28, 2017 Share Posted May 28, 2017 1 minute ago, MR.NaiF-MTA said: @Master_MTA ادري انه سيرفر مسويله ترايقر للكلاينت + اسف نسيت ال then انا ما اقولك عشان تعتذر يقلبي انا انبهك فقط +_+ Link to comment
#F9SoOoL Posted May 31, 2017 Share Posted May 31, 2017 (edited) On 5/25/2017 at 17:04, MARIY said: السلام عليكم وش الغلط في ذا الكود --server local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function () triggerClientEvent(source, "trig", source) end ) --client wnd = guiCreateWindow(170,139,520,238,".::[وظيفه القطاار|Train mission]::.",false) image = guiCreateStaticImage(9,24,129,131,"images.png",false,wnd) Memo = guiCreateMemo(145,19,366,156,"السلام عليكم----------------------------------------------------وظيفه القطاارلبداء المهمه اضغط زر دخولسيتم نقلك إلي القطاريجب عليك الوصول إلي المحطه بسلام----------------------------------------------------- للخروج اكتب باف 8distrain",false,wnd) buttr1 = guiCreateButton(9,195,179,32,"دخول",false,wnd) buttr2 = guiCreateButton(333,195,178,32,"خروج",false,wnd) Label = guiCreateLabel(218,175,76,17,"By MA[S]RIY",false,wnd) guiLabelSetColor(Label,255,0,0) guiSetFont(Label,"default-bold-small") guiSetVisible(wnd,false) ------------------------------------------------------------------------------------------------------------ addEvent("trig", true) addEventHandler("trig", root, function() guiSetVisible ( wnd, true ) showCursor ( true ) end ) ذا الكود لما يدخل الماركر يفتح له لوحه ادخل الماركر م تفتح ليش ؟ --server local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function (thePlayer) if getElementType(thePlayer) == "player" and not isPedInVehicle(thePlayer) then triggerClientEvent(thePlayer, "trig", thePlayer) end end ) --client wnd = guiCreateWindow(170,139,520,238,".::[وظيفه القطاار|Train mission]::.",false) image = guiCreateStaticImage(9,24,129,131,"images.png",false,wnd) Memo = guiCreateMemo(145,19,366,156,"السلام عليكم\n----------------------------------------------------\nوظيفه القطاار\nلبداء المهمه اضغط زر دخول\nسيتم نقلك إلي القطار\nيجب عليك الوصول إلي المحطه بسلام\n-----------------------------------------------------\n للخروج اكتب باف 8\ndistrain\n",false,wnd) buttr1 = guiCreateButton(9,195,179,32,"دخول",false,wnd) buttr2 = guiCreateButton(333,195,178,32,"خروج",false,wnd) Label = guiCreateLabel(218,175,76,17,"By MA[S]RIY",false,wnd) guiLabelSetColor(Label,255,0,0) guiSetFont(Label,"default-bold-small") guiSetVisible(wnd,false) ------------------------------------------------------------------------------------------------------------ addEvent("trig", true) addEventHandler("trig", root, function() guiSetVisible ( wnd, true ) showCursor ( true ) end ) Edited May 31, 2017 by #F9SoOoL 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