-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Police سؤالي هو: كيف اللاعب يدخل تيم عن طريق الضغط على زر مثلاً؟ وين كودك؟ -_-" الكود الي أنت حطيته أنا معطيك اياه
-
Police وين كودك حق لما تخش تيم أنت وش تستخدم setPlayerTeam? او spawnPlayer?
-
الحين ايش الي مو راضي يشتغل بالضبط؟ و ايش الي انت تبيه؟
-
متأكد أنك في تيم الشرطة و لما غيرت شخصيتك من 217 إلى أي شخصية ثانية ما طلعك من التيم؟
-
-- 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)
-
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
-
-- 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)
-
ما تقدر تلغيه onPlayerWasted الأفنت ما تقدر تلغيه onPlayerDamage و أفنت أنت جالس تفعل النيران الصديقة و صاحب الموضوع يبي يلغيها setTeamFriendlyFire و و هذا السطر مدري وش يبي if ( team and getTeamFromName ( team ) == "Police" ) then بالله أقرأ كودك و شوف ايش الي فيه مو تسوي كوبي بست و مو داري وش السالفه يجيب عنصر التيم من اسم التيم getTeamFromName الكود يعني ما يصير تقارنه مع أسم التيم ذا غير الأند الي زايد الزبده مافيه شي صح بكودك نهائياً
-
ايش التخبيص ذا الي ما يعرف لا يرد بدون ما يجرب أكواده و يتأكد أنها شغاله ولا يخربط صاحب الموضوع -- client side addEventHandler("onClientPlayerDamage", localPlayer, function() local team = getPlayerTeam(source) if team and team == getTeamFromName("Police") then cancelEvent() end end)
-
onPlayerJoin? + مره ثانية حط عنوان للموضوع يدل على المحتوى "x[ تمت الافاده]x" و ياليت ما تحط العنوان ذا
-
أنا كنت أستخدمه في 2011 و كان شغال بس يمكن الحين ماعاد يشتغل بسبب الموقع الي موجوده فيه قاعدة البيانات الي المود متصل بها مو شغال
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=2764
-
Have you noticed that object are table not element? @SKIPPER, As Castro said you forgot the Bone ID.
-
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.
-
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)
-
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
-
لازم تلغي التصويب toggleControl ( hitPlayer, "aim_weapon", false )
-
https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints2D OR https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints3D
-
-- Server Side -- addEventHandler("onPlayerJoin", root, function() outputChatBox("تم الصنع من قبل سفاح", source, 255, 255, 0, true) end)
-
https://wiki.multitheftauto.com/wiki/CreateMarker visibleTo: Every element that is a child of this element can see the marker. See visibility.
