-
Posts
1,862 -
Joined
-
Days Won
8
Everything posted by Rockyz
-
متأكد ولا بس تبي جاهز
-
هذا http://prntscr.com/gjrgv8
-
راجع الساينتكس
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=3054
-
اضغط على كل فنكشن بتشوف الساينتكس اول شي
-
addEvent ( 'lol' , true ) addEventHandler ( 'lol', root, function ( ) if ( getPlayerMoney ( source ) >= 20000 ) then takePlayerMoney ( source, 20000 ) outputChatBox ( 'لقد إشتريت تذكرة الدخول لألعاب الدراجات النارية', source, 0, 255, 0 ) setElementData ( source, 'tick', true ) else outputChatBox ( 'انت لا تملك المال الكافي !!!', source, 255, 0, 0 ) end end ) m1 = createMarker ( 2792.90430, -1721.76599, 12.8, 'arrow', 2, 255, 255, 100 ) addEventHandler ( 'onMarkerHit', m1, function ( hitElement ) if ( getElementType ( hitElement ) == 'player' ) then if ( getElementData ( hitElement, 'tick' ) ) then setElementPosition ( hitElement, 2792, -1721, 12.8 ) else outputChatBox ( 'انت لا تملك المال الكافي !!!', hitElement, 255, 0, 0, true ) end end end )
-
https://forum.multitheftauto.com/topic/82388-how-do-i-run-with-weapons/
-
العفو بس انسخ الكود مرة ثانية عدلت شي بسيط
-
انت حط كودي ومايحتاج تسوي عمليات حسابية
-
غلط انت سو الي قلت لك عليه فوق ^ واستخدم الفنكشن كأي شي عادي
-
تقدر تسوي عن طريق فنكشن مثال : حط هالكود في البداية _dxDrawImage = dxDrawImage _dxDrawRectangle = dxDrawRectangle _dxDrawText = dxDrawText _dxDrawLine = dxDrawLine local sx, sy = guiGetScreenSize ( ); local sx, sy = ( sx / 800 ), ( sy / 600 ); function dxDrawImage ( x, y, w, h, filename, ... ) if ( ... ) then _dxDrawImage ( x * sx, y * sy, w * sx, h * sy, filename, ... ); else _dxDrawImage ( x * sx, y * sy, w * sx, h * sy, filename ); end end function dxDrawRectangle ( x, y, w, h, ... ) if ( ... ) then _dxDrawRectangle ( x * sx, y * sy, w * sx, h * sy, ... ); else _dxDrawRectangle ( x * sx, y * sy, w * sx, h * sy ); end end function dxDrawText ( text, x, y, w, h, ... ) local w, h = w or 0, h or 0 if ( ... ) then _dxDrawText ( text, x * sx, y * sy, w * sx, h * sy, ... ); else _dxDrawText ( text, x * sx, y * sy, w * sx, h * sy ); end end function dxDrawLine ( x, y, w, h, clr, ... ) if ( ... ) then _dxDrawLine ( x * sx, y * sy, w * sx, h * sy, clr, ... ); else _dxDrawLine ( x * sx, y * sy, w * sx, h * sy, clr ); end end
-
addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) bindKey ( 'x', 'down', function ( ) if not ( isTimer ( shootCooldown ) ) then local projectileVehicle = getPedOccupiedVehicle ( localPlayer ) if ( projectileVehicle and getElementModel ( projectileVehicle ) == 411 ) then local x, y, z = getElementPosition ( projectileVehicle ) createProjectile ( projectileVehicle, 19, x, y, z ) shootCooldown = setTimer ( function ( ) end, 1000, 1 ) end end end ) end )
-
ped is player
-
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use warpPedIntoVehicle instead. + warpPlayerIntoVehicle (player,Rekka) player = ?
-
يستهبل ._.
-
ناندااااااااااااااااااااااا