Jump to content

!#NssoR_)

Retired Staff
  • Posts

    1,474
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by !#NssoR_)

  1. حط هذا بالكلنت وانتهي الموضوع . setTimer(function () setPlayerHudComponentVisible( "money", true ) end,400,1)
  2. جرب غير اسم القاعدة ,, واذا ماضبط اطرح الخطأ الي يقوله الدي بق .
  3. ^ اكيد ماراح يشتغل , لأن الكود الي انت مستخدمه حق عدد اللاعبين فقط يشتغل بجهة السيرفر فلذلك استخدم الي قالك عليه الوحش
  4. addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[2] then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false) then outputChatBox(' يجب عليك تحديد شيء قبل الارسال ', 255, 0, 0, true) return end if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then local TS1 = guiGetText(GUIEditor.checkbox[1]) triggerServerEvent( "T3", localPlayer,TS1) elseif ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true ) then local TS2 = guiGetText(GUIEditor.checkbox[2]) triggerServerEvent( "T3", localPlayer,TS2) elseif (guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true ) then local TS3 = guiGetText(GUIEditor.checkbox[3]) triggerServerEvent( "T3", localPlayer,TS3) end end end )
  5. addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[2] then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false) then outputChatBox(' يجب عليك تحديد شيء قبل الارسال ', 255, 0, 0, true) return end local TS1 = guiGetText(GUIEditor.checkbox[1]) local TS2 = guiGetText(GUIEditor.checkbox[2]) local TS3 = guiGetText(GUIEditor.checkbox[3]) triggerServerEvent( "T3", localPlayer,TS1,TS2,TS3) end end )
  6. local v = 0 local i local c addEventHandler ( 'onClientRender', getRootElement ( ), function ( ) if not ( i ) then i = getTickCount ( ) end v = v + 1 c = getTickCount ( ) if ( c - i >= 1000 ) then setElementData ( getLocalPlayer ( ), 'fps', v ) v = 0 i = false end end ) function getPlayerFPS ( player ) return getElementData ( player, 'fps' ) or 0 end addCommandHandler('myfps', function ( ) outputChatBox( 'your fps : '..tostring(getPlayerFPS ( getLocalPlayer ( ) )),255,255,255,true) end) الكود حق عاشق , عدلت لك عليه myfps اكتب في اف8 راح يطلعلك الاف بي اس حقك بالشات
  7. A. i was Sleeping. Q. Which game do you prefer? Hitman Absolution or Hitman Blood Money ?
  8. اجل الكود الصحيح بس تأكد ان الداتا ذي getElementData(getResourceRootElement(getThisResource()),"ChatSystem") شغاله لأن الخطأ منها
  9. local marker = createMarker(1,1,4,"cylinder",1.5,0,255,0,255) addEventHandler("onMarkerHit",root, function (mz) if ( getElementType(mz) == 'player' ) then local s = getElementData(getResourceRootElement(getThisResource()),"ChatSystem") if ( s ) then if s == "False" then outputChatBox("تم اغلاق الشات "..getPlayerName(mz).."",mz,0,255,0,true) return end outputChatBox("* there's a data but not Fasle",root,0,255,0,true) else outputChatBox("* No Data",root,0,255,0,true) end end end) جرب وقولي وش يطلعلك بالشات . @Default تسلم ع التنبيه
  10. تأكد انك سويت ملف كلنت وضفته للميتا وانك ماحطيت الكودين بملف السيرفر + هل من اخطاء بالدي بق؟
  11. local marker = createMarker(1,1,4,"cylinder",1.5,0,255,0,255) addEventHandler("onMarkerHit",root, function (mz) if ( getElementType(mz) == 'player' ) then local s = getElementData(getResourceRootElement(getThisResource()),"ChatSystem") if s == "False" then outputChatBox("تم اغلاق الشات "..getPlayerName(p).."",mz,0,255,0,true) end end end) اذا ماضبط فـ الخطأ من عندك يمكن الداتا غير صحيحه ..#
  12. اتمني ماترفع مواضيع قديمة وتخرب مواضيع العالم الي يبي إستضافتك بيجيك .
  13. SafahM = createMarker ( -3413.11499 ,-2996.82300, 15.06875, "cylinder", 180, 250, 250, 250, 255 ) SafahM = createMarker ( 275.24271 ,1990.40491, 17.65536, "cylinder", 40, 250, 250, 250, 255 ) addEventHandler ( "onMarkerHit", SafahM, function ( hitPlayer ) if getElementType ( hitPlayer ) == "player" then toggleControl (hitPlayer,"fire", false ) toggleControl (hitPlayer, "next_weapon", false) toggleControl (hitPlayer, "previous_weapon", false) toggleControl (hitPlayer, "aim_weapon", false) toggleControl (hitPlayer, "vehicle_fire", false) setElementData(hitPlayer,'cancelDamage',true) elseif getElementType ( hitPlayer ) == "vehicle" then local Player = getVehicleController ( hitPlayer ) outputChatBox ( "* ممنوع دخول المواتر هنا !", Player, 255, 0, 0, true ) destroyElement ( hitPlayer ) setElementData(Player,'cancelDamage',true) end end ) addEventHandler ( "onMarkerLeave", SafahM, function ( leftPlayer ) if getElementType (leftPlayer ) == "player" then toggleControl (leftPlayer, "fire", true ) toggleControl (leftPlayer, "next_weapon", true) toggleControl (leftPlayer, "previous_weapon", true) toggleControl (leftPlayer, "aim_weapon", true) toggleControl (leftPlayer, "vehicle_fire", true) if ( getElementData(leftPlayer,'cancelDamage') ) then setElementData(leftPlayer,'cancelDamage',false) end end end ) #Client. addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), function ( attacker, weapon, bodypart ) if ( attacker and getElementType(attacker) == 'player' and attacker ~= source ) then if ( getElementData(source,'cancelDamage') ) then cancelEvent() end end end )
  14. @Abdul KariM الا اخوي الموقع الي عطاك # صحيح ولكن لما تجي تحط الكود انت شيل العلامة هذول خليهم لاتغيرهم وغير من بعدهم يعني زي كذا FF وفيه بأول الكود حرفين "FFFFFFFF" كذا خليته ابيض "FF990000" كذا خليته احمر اتمني وصلت
  15. حبيت اقولكم انهم سوو تعديل بسيط للي كان يشتكي من سالفة تعديل رده حاليأ . يمديك تعدل علي ردك ولكن في حال مر علي التعليق اكثر من 25 دقيقة ماراح تقدر تعدل عليه .
  16. addEventHandler("onPlayerWasted",root, function ( _,killer ) if killer and getElementType( killer ) == "player" and ( killer ~= source ) then givePlayerMoney( killer, 10000 ) setElementDimension ( killer, 0 ) setElementPosition ( killer , 775.97052, -1279.57434, 13.64844 ) removeElementData ( killer, "PlayerH" ) removeElementData ( source, "PlayerH" ) end end ) كذا انا شلت الداتا من الاثنين الي مات والقاتل .
  17. getElementData removeElementData تستخدمهم مع لوب وتشوف الي معه الداتا الي تبيها تحذفها منه , طبعا الكود الثاني سيرفر فقط
×
×
  • Create New...