Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Police سؤالي هو: كيف اللاعب يدخل تيم عن طريق الضغط على زر مثلاً؟ وين كودك؟ -_-" الكود الي أنت حطيته أنا معطيك اياه
  2. Police وين كودك حق لما تخش تيم أنت وش تستخدم setPlayerTeam? او spawnPlayer?
  3. الحين ايش الي مو راضي يشتغل بالضبط؟ و ايش الي انت تبيه؟
  4. متأكد أنك في تيم الشرطة و لما غيرت شخصيتك من 217 إلى أي شخصية ثانية ما طلعك من التيم؟
  5. -- server side addEventHandler("onElementModelChange", root, function(oldModel, newModel) if getElementType(source) == "player" then local team = getPlayerTeam(source) if team and team == getTeamFromName("Police") and newModel ~= 217 then setPlayerTeam(source, nil) end end end)
  6. كم رقم الشخصية؟
  7. https://wiki.multitheftauto.com/wiki/OnMarkerHit The source of this event is the marker that got hit by the element. بالنسبة للسطر ذا if ( team and getTeamFromName ( team ) ~= "Police" ) then شوف ردي بالموضوع ذا viewtopic.php?f=160&t=54250&start=15
  8. -- client side addEventHandler("onClientPlayerDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" then local team = getPlayerTeam(source) if team and team == getTeamFromName("Police") then cancelEvent() setElementHealth(attacker, getElementHealth(attacker) - 20) end end end)
  9. ما تقدر تلغيه onPlayerWasted الأفنت ما تقدر تلغيه onPlayerDamage و أفنت أنت جالس تفعل النيران الصديقة و صاحب الموضوع يبي يلغيها setTeamFriendlyFire و و هذا السطر مدري وش يبي if ( team and getTeamFromName ( team ) == "Police" ) then بالله أقرأ كودك و شوف ايش الي فيه مو تسوي كوبي بست و مو داري وش السالفه يجيب عنصر التيم من اسم التيم getTeamFromName الكود يعني ما يصير تقارنه مع أسم التيم ذا غير الأند الي زايد الزبده مافيه شي صح بكودك نهائياً
  10. ايش التخبيص ذا الي ما يعرف لا يرد بدون ما يجرب أكواده و يتأكد أنها شغاله ولا يخربط صاحب الموضوع -- client side addEventHandler("onClientPlayerDamage", localPlayer, function() local team = getPlayerTeam(source) if team and team == getTeamFromName("Police") then cancelEvent() end end)
  11. onPlayerJoin? + مره ثانية حط عنوان للموضوع يدل على المحتوى "x[ تمت الافاده]x" و ياليت ما تحط العنوان ذا
  12. أنا كنت أستخدمه في 2011 و كان شغال بس يمكن الحين ماعاد يشتغل بسبب الموقع الي موجوده فيه قاعدة البيانات الي المود متصل بها مو شغال
  13. https://community.multitheftauto.com/index.php?p=resources&s=details&id=2764
  14. Have you noticed that object are table not element? @SKIPPER, As Castro said you forgot the Bone ID.
  15. TAPL

    Some Questions

    triggerServerEvent
  16. TAPL

    Some Questions

    Other players won't see the color, because you setting it client side, you need to set it server side to make other players see the color too.
  17. function Show_wheel_one(player) if player ~= localPlayer then return end if (guiGetVisible(Window_Wheel) == true) then guiSetVisible(Window_Wheel, false) showCursor(false) else guiSetVisible(Window_Wheel, true) showCursor(true) local sound = playSound("x1x.wma") setSoundVolume(sound, 1) end end addEventHandler("onClientMarkerHit", marker, Show_wheel_one)
  18. function sortTimerj ( plr, timer, time ) if timer and time then if isTimer ( timerjTimer ) then killTimer ( timerjTimer ) timerjTimer = nil end timerjTimer = setTimer ( function ( plr, timer, time ) if isElement(plr) then local timee = tonumber ( time or 0 ) - 70 m, s, cs = msToTimeStr ( timee ) fullTime = ''..tostring(m)..':'..tostring(s)..'' textItemSetText ( timer, "Time Left : "..fullTime ) setElementData ( resourceRoot, getPlayerSerial ( plr ).. "-t", timee ) if ( tonumber ( m ) <= 0 and tonumber ( s ) <= 0 and tonumber ( cs ) <= 0 ) then onTimerFinish(plr,timer) end end end , 50 , 0 , plr, timer, time ) end end
  19. لازم تلغي التصويب toggleControl ( hitPlayer, "aim_weapon", false )
  20. TAPL

    طلب

  21. TAPL

    طلب

    يا حبيبي ضيف المود في قروب أدمن -_-"
  22. https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints2D OR https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints3D
  23. TAPL

    طلب

    تأكد أنك ضايفه في قروب أدمن
  24. -- Server Side -- addEventHandler("onPlayerJoin", root, function() outputChatBox("تم الصنع من قبل سفاح", source, 255, 255, 0, true) end)
  25. https://wiki.multitheftauto.com/wiki/CreateMarker visibleTo: Every element that is a child of this element can see the marker. See visibility.
×
×
  • Create New...