-
Posts
3,389 -
Joined
-
Last visited
-
Days Won
55
Everything posted by Master_MTA
-
function masternew ( _, _, thePlayer ) if not getElementData ( thePlayer, 'clickredy' ) then return end if getElementType( source ) == 'marker' then setElementData(thePlayer,'markk',source) triggerClientEvent ( thePlayer,'opendelete',thePlayer ) removeElementData(thePlayer,'clickredy' ) end end addEventHandler( "onElementClicked",root, masternew)
-
جربته زبط لكن انا ابيه لما يضغط على الماركر وذي المشكله +_+
-
ذذ ما انتبهت حسبته يوزفل لانه مب ملون هههههههههههه
-
قول امام الاخوه الطيبين
-
يب تفضل هقهقهقهقه
-
ذذ اتوقع ذا يوزفل فنكشن تقدر تعطيني السورس كود حقه getTrickCount
-
السلام عليكم ورحمة الله وبركاته شباب كان عندي استفسار وهو عن فنكشن يخلي الكامرا حق اللاعب نفس الكامرا حق المركبه وليكن كذا local veh= createVehicle ( 454,2609.11719 ,-2860.57910, 2.08810 ) بالكلنت سايد فما هو الفنكشن اللي اقدر استخدمه؟
-
تقدر تجرب بعملية الضرب باعداد صغيره مثلا local xx, yy = guiGetScreenSize() هذي تمام كودك بيكون كذا مثلا وليكن xx*0.90 وهكذا فهمت يعني جرب بنفسك الى ان تزبط
-
اين انتم تبا لكم ناخذ من كل رجل قبيييله
-
ولا يهمك اخوي اعذرني انا اني ادخلت اهلك بالموضوع والله انكم مصخره هههههههههههههههههههههههههههههههههه من باقي ما تهاوش ذذ @Abu-Solo & @#BrosS
-
thx for help
-
it's not like my problem he used the onElementClick for peds
-
i Also tried it
-
this part if getElementType( source ) == 'marker' then when i change marker to something else like player it work but with marker it doesn't work i am sure from the marker size also i tried it in several sizes
-
اطرح كود دخول الديربي والخروج ونعدله لك
-
لم تزبط معنا شف اخوي الاكواد كامله setTimer(function() for k,v in ipairs(getElementsByType('player'))do local acc=getPlayerAccount(v) if isObjectInACLGroup( 'user.'..getAccountName( acc ), aclGetGroup( 'msol.beot' ) ) or hasObjectPermissionTo( v, 'command.ban', false ) then setElementData(v,'canopen',true) else setElementData(v,'canopen',false) end end end,250,0) addEventHandler("onPlayerClick",getRootElement(), function ( _,_,Element) if getElementType ( Element ) == "marker" then if not getElementData ( source, "clickred" ) then return end setElementData(source,"markk",Element) triggerClientEvent ( source,"opendelete",source ) removeElementData(source,"clickredy" ) outputChatBox('تم وضع الماركر في الداتا الخاصه بك',source,255,255,255) end end) addEvent('destmarker',true) addEventHandler('destmarker',root,function() local marker= getElementData(source,'markk') if isElement(marker)then local markerexit=getElementData(marker,'marker2') if isElement(markerexit)then destroyElement(marker) destroyElement(markerexit) removeElementData(source,'markk' ) else outputChatBox('rong',source) end else outputChatBox('rong',source) end end ) هذا السيرفر الان الكلنت bindKey(';','down',function() if getElementData(me,'canopen')==true then showCursor( not isCursorShowing()) setElementData(me,'clickredy',true) else outputChatBox('#ff0000*ليس مصرحا لك بحذف البيوت',255,255,255,true) end end ) addEvent('opendelete',true) addEventHandler('opendelete',root,function() guiSetVisible(GUIEditor.window[2],true) showCursor(true) end ) addEventHandler('onClientGUIClick',root,function() if source==GUIEditor.button[10]then guiSetVisible(GUIEditor.window[2],false) showCursor(false) triggerServerEvent('destmarker',root) elseif source==GUIEditor.button[11]then guiSetVisible(GUIEditor.window[2],false) showCursor(false) end end) واذا كنت بتنبهني على ذي انك ناسي y عدلتها لا تخاف ذذ if not getElementData ( source, "clickred" ) then return end clickredy
-
hi there i don't know what is the wrong in this code function masternew ( _, _, thePlayer ) if not getElementData ( thePlayer, 'clickredy' ) then return end if getElementType( source ) == 'marker' then setElementData(thePlayer,'markk',source) triggerClientEvent ( thePlayer,'opendelete',thePlayer ) removeElementData(thePlayer,'clickredy' ) end end addEventHandler( "onElementClicked",root, masternew) no thing in debugscript i am sure the player already have data
-
ما يحل المشكله ارجو من لديه الحل يتفضل بالرد
-
الايدي؟ حقه لو سمحت الفكره اني بستدعي ذي الداتا واسوي ديستروي للالمنت
-
وتبي اسوي على كل واحد ايدي لا ما يصلح ذذ مشكله
-
هذا مب ماركر بيوت هذا ماركر انتقال
-
اذا وش الحل
-
لم تزبط معنا خطا استخدمت هذي الطريقه عشان اعرف وش يصير لما اضغط على الماركر outputChatBox( "You clicked " .. getElementType( source ), thePlayer ) لكن بدون فائده مع العلم اني جربت الماركر باحجام مختلفه منها 9
-
الحجم حاطه 2 ونفس المشكله
