Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Days Won

    27

Everything posted by iPrestege

  1. @Dutchman101 I searched for a server with 'Inception' tag and i found it and i choose it and it's just keep loading.. the players list so that's true also the server showed for just a few seconds maybe 30 or less and disappear like offline or something but you can join with the serverIP.
  2. You can do such a thing like this ; addEventHandler ( 'onClientMarkerHit',root, function ( aHit ) if ( aHit and aHit == localPlayer ) then if ( source == aMyMarkerOne ) then guiSetVisible ( aMyWnd,true ); showCursor ( true ); guiSetText ( aMyWnd,'Bank System (1)' ); elseif ( source == aMyMarkerTwo ) then guiSetVisible ( aMyWnd,true ); showCursor ( true ); guiSetText ( aMyWnd,'Bank System (2)' ); end end end ); This is just an example you can do it shorter but i wrote it to show you how you can do it.
  3. 2 asdkjl;[email protected].@4!£l!kjfjxfitlaidonetwinskloryegt!
  4. @#Dr.BnG الموضوع بسيط رح لمود الادمنية بعدين ملف client بعدين ملف gui وافتح ملف admin_main.lua ورح لسطر 899 وبيكون زي كذا elseif ( source == aTab1.Mute ) then if not aPlayers[player]["mute"] then aMuteInputBox ( player ) else aMessageBox ( "question", "Are you sure to unmute "..name.."?", "unmute", player ) end بدلة وحطه كذا : elseif ( source == aTab1.Mute ) then if player == localPlayer then return aMessageBox( 'error',[[لا تستطيع فك او اعطاء الميوت الى نفسك!]] ) end if not aPlayers[player]["mute"] then aMuteInputBox ( player ) else aMessageBox ( "question", "Are you sure to unmute "..name.."?", "unmute", player ) end سويت تحقق انة الاعب المحدد من القائمة اذا كان اللوكال بلاير يرجع لرسالة خطا ويتكنسل الموضوع
  5. Ok then you can try this example it will write the vehicle name if it was banshee so spawn a car with 429 id and see the results and you can make what ever you want to edit the code so try this on client side : addEventHandler ( 'onClientRender',root, function ( ) for _,aVehicle in next,getElementsByType ( [[vehicle]] ) do if aVehicle and getElementModel ( aVehicle ) == 429 then local aPx,aPy,aPz = getElementPosition ( localPlayer ); local aVx,aVy,aVz = getElementPosition ( aVehicle ); if ( getDistanceBetweenPoints3D ( aPx,aPy,aPz,aVx,aVy,aVz ) <= 10 ) then local aSx,aSy = getScreenFromWorldPosition ( aVx,aVy,aVz ); if ( aSx and aSy ) then dxDrawText( tostring ( getVehicleName ( aVehicle ) ),aSx,aSy,_,_,tocolor ( 255,0,0,255 ),2,'Arial','center','center' ); end end end end end );
  6. @Alexandre Makina You can see this on : https://community.multitheftauto.com/index.php?p=resources&s=details&id=7613 Wiki resource page : https://wiki.multitheftauto.com/wiki/Resource:DxDraw3DText
  7. Try this ; On client ; aFireSound = { }; aLastSound = { }; addEvent ( 'onPlayFireSound',true ); addEventHandler ( 'onPlayFireSound',root, function ( aVehicle,aX,aY,aZ ) if aVehicle and aX and aY and aZ then if aLastSound [ aVehicle ] and isElement ( aLastSound [ aVehicle ] ) then destroyElement ( aLastSound [ aVehicle ] ) aLastSound [ aVehicle ] = nil end aFireSound [ aVehicle ] = playSound3D ( 'files/fire.wav',aX,aY,aZ,false ); setSoundMaxDistance ( aFireSound [ aVehicle ], 500 ); setSoundVolume ( aFireSound [ aVehicle ], 1 ); attachElements ( aFireSound [ aVehicle ],aVehicle,0,0,0 ); setElementData ( aVehicle,'aSoundOn',true ); end end ); addEvent ( 'onStopFireSound',true ); addEventHandler ( 'onStopFireSound',root, function ( aVehicle,aX,aY,aZ ) if aVehicle and aX and aY and aZ then if aFireSound [ aVehicle ] and isElement ( aFireSound [ aVehicle ] ) then destroyElement ( aFireSound [ aVehicle ] ) aFireSound [ aVehicle ] = nil end aLastSound [ aVehicle ] = playSound3D ( 'files/fire_lastshot.wav',aX,aY,aZ,false ); setSoundMaxDistance ( aLastSound [ aVehicle ], 500 ); setSoundVolume ( aLastSound [ aVehicle ], 1 ); attachElements ( aLastSound [ aVehicle ],aVehicle,0,0,0 ); setElementData ( aVehicle,'aSoundOn',false ); end end ); On server ; function aMakeSoundPlay ( aPlayer ) if aPlayer and getElementType ( aPlayer ) == 'player' then if isPedInVehicle ( aPlayer ) then local aVehicle = getPedOccupiedVehicle( aPlayer ); if aVehicle and getElementModel ( aVehicle ) == 476 then local aX,aY,aZ = getElementPosition ( aVehicle ); triggerClientEvent ( root,'onPlayFireSound',root,aVehicle,aX,aY,aZ ); end end end end function aMakeSoundStop ( aPlayer ) if aPlayer and getElementType ( aPlayer ) == 'player' then if isPedInVehicle ( aPlayer ) then local aVehicle = getPedOccupiedVehicle( aPlayer ); if aVehicle and getElementModel ( aVehicle ) == 476 then if getElementData ( aVehicle,'aSoundOn' ) == true then local aX,aY,aZ = getElementPosition ( aVehicle ); triggerClientEvent ( root,'onStopFireSound',root,aVehicle,aX,aY,aZ ); end end end end end addEventHandler ( 'onResourceStart',resourceRoot, function ( ) for _,aPlayers in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( aPlayers,'lctrl','down',aMakeSoundPlay ); bindKey ( aPlayers,'lctrl','up',aMakeSoundStop ); end end ); addEventHandler ( 'onPlayerJoin',root, function ( ) bindKey ( source,'lctrl','down',aMakeSoundPlay ); bindKey ( source,'lctrl','up',aMakeSoundStop ); end );
  8. بدل السريال بسريالك وجرب هذا مجرد مثال فقط لكيف تسوي الوان عشوائية من جدول . عند التحدث بالشات
  9. triggerClientEvent ( source,"start_fire_sound",root,veh )
  10. aMyColors = { '#FF0000','#FFFF00','#0000FF' } aMySerial = 'You serial in here' addEventHandler ( 'onPlayerChat',root, function ( aMsg ) if getPlayerSerial ( source ) == aMySerial then cancelEvent ( ) outputChatBox ('* Fa'..aMyColors [ math.random ( 1,#aMyColors ) ]..'H#FFFFFFaD :'..aMsg,root,255,255,255,true ) end end ) قصدك كذا ولا وش بالضبط وضح وش تبي
  11. القروب هذا يرجع لـ ايش؟ عارف انك تجيب القروب لكن كيف تسترجع الاعبين المخزنين في القروب؟ فية الوظيفة اللي تخزن الاعبين في القروب ابحث عنها وحط داتا للاعبين هناك
  12. اخوي كل اللي سويتة عدلت على كودك سويت جدول للتايمر واختصرت المتغيرات اللي انت حاطها فقط وكذلك سويت لك لوحة تجربها عموما حياك الله في اي وقت .
  13. خلاص عدل على الكود اللي يعطي الاعب السلاح وحط داتا يس للي اخذ السلاح اما تحطها لقروب كذا ماتصير
  14. خذ هذا المثال حط سريالك وشوف عندك الكلام بيكون بالوان عشوائية رسالتك اللي في الشات الاحمر الازرق و الاصفر : aMyColors = { '#FF0000','#FFFF00','#0000FF' } aMySerial = 'Your serial in here' addEventHandler ( 'onPlayerChat',root, function ( aMsg ) if getPlayerSerial ( source ) == aMySerial then cancelEvent ( ) outputChatBox ('* FaHaD : '..aMyColors [ math.random ( 1,#aMyColors ) ]..''..aMsg,root,255,255,255,true ) end end )
  15. استعمل الجداول وضع لكل نافذه تايمر جرب كذا : local aWndTimer = { } function aSetGUIAlpha ( aWnd ) if ( aWnd ) then guiSetVisible ( aWnd,true ) guiSetAlpha ( aWnd, 0 ) aWndTimer [ aWnd ] = setTimer( function( ) guiSetAlpha( aWnd,guiGetAlpha ( aWnd ) + 0.05 ) if ( guiGetAlpha ( aWnd ) == 1.00 ) and isTimer ( aWndTimer [ aWnd ] ) then killTimer( aWndTimer [ aWnd ] ) aWndTimer [ aWnd ] = nil outputChatBox ( [[ Timer is done! ]],255,255,9 ) end end,50,0 ) end end جرب هذا الكود + هذا مثال تجربة عندك : local aWndTimer = { } function aSetGUIAlpha ( aWnd ) if ( aWnd ) then guiSetVisible ( aWnd,true ) guiSetAlpha ( aWnd, 0 ) aWndTimer [ aWnd ] = setTimer( function( ) guiSetAlpha( aWnd,guiGetAlpha ( aWnd ) + 0.05 ) if ( guiGetAlpha ( aWnd ) == 1.00 ) and isTimer ( aWndTimer [ aWnd ] ) then killTimer( aWndTimer [ aWnd ] ) aWndTimer [ aWnd ] = nil outputChatBox ( [[ Timer is done! ]],255,255,9 ) end end,50,0 ) end end local aScrX,aScrY = guiGetScreenSize ( ) local aWndX,aWndY = aScrX*( 1027/1366 ),aScrY*( 357/768 ) local aWndH,aWndW = aScrX*( 271/1366 ),aScrY*( 236/768 ) aMyWnd = guiCreateWindow ( aWndX,aWndY,aWndH,aWndW,[[ FaHaD ]],false ) aMyWndTwo = guiCreateWindow ( aWndX+math.random ( 15,35 ),aWndY+math.random ( 15,35 ),aWndH,aWndW,[[ FaHaD Two ]],false ) guiSetVisible ( aMyWnd,false ) guiSetVisible ( aMyWndTwo,false ) addCommandHandler ( 'aSet', function ( ) aSetGUIAlpha ( aMyWnd ) aSetGUIAlpha ( aMyWndTwo ) end ) استعمل الكلمة aSet في اف 8
  16. @Dr. @Mr.CoR @الجميع للي محتاج الويكي يقدر يحصل الاوفلاين كوبي هنا : الويكي كامل بدون نت
  17. مادري كيف تبي تسويها ومدري وش المود اللي تستعملة لكن لازم تجيب كل الاعبين اللي مخزنين بوظيفة ومدري هالوظيفة عندك او لا لكن هذا مثال يجيب كل الاعبين اللي بالسيرفر واذا كان القروب حقهم سوات يحط الداتا يس ترو : addCommandHandler ( 'aSet', function ( ) for _,aPlayer in ipairs ( getElementsByType ( 'player' ) ) do local aGroupData = getElementData ( aPlayer,'Group' ) if ( aGroupData and aGroupData == 'SWAT' ) then setElementData ( aPlayer,'Yes',true ) end end end )
  18. Hi Forum Administrations and MTA Team, I'd like to report about a problem using the forum from the mobile as you can see in the screenshot below that there's a youtube video and it's very small and you can start it but it's not in the original size as it should be you can see the original size after the screenshot for the same video : So that's looks just fine and you can see the post in the arabic general section from here : Regards,
  19. Yes that's true but in that time anyone can edit the post at anytime even after alot of time but i can see that a one hour isn't that much and not that bad too as 25 Anyway @darkdreamingdan I would like to support GTX's + CodyL About making more time to edit the posts one hour for sure it's much better than 25 Minutes Regards,
  20. طلبك موب واضح وضح اكثر
  21. iPrestege

    Nothing

    WHY _______________________________ PAIRS NOT!
×
×
  • Create New...