-
Posts
10,056 -
Joined
-
Days Won
27
Everything posted by iPrestege
-
name > 'اسم المود'
-
@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.
-
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.
-
2 asdkjl;[email protected].@4!£l!kjfjxfitlaidonetwinskloryegt!
-
@#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 سويت تحقق انة الاعب المحدد من القائمة اذا كان اللوكال بلاير يرجع لرسالة خطا ويتكنسل الموضوع
-
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 );
-
@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
-
You're welcome.
-
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 );
-
بدل السريال بسريالك وجرب هذا مجرد مثال فقط لكيف تسوي الوان عشوائية من جدول . عند التحدث بالشات
-
triggerClientEvent ( source,"start_fire_sound",root,veh )
-
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 ) قصدك كذا ولا وش بالضبط وضح وش تبي
-
القروب هذا يرجع لـ ايش؟ عارف انك تجيب القروب لكن كيف تسترجع الاعبين المخزنين في القروب؟ فية الوظيفة اللي تخزن الاعبين في القروب ابحث عنها وحط داتا للاعبين هناك
-
اخوي كل اللي سويتة عدلت على كودك سويت جدول للتايمر واختصرت المتغيرات اللي انت حاطها فقط وكذلك سويت لك لوحة تجربها عموما حياك الله في اي وقت .
-
خلاص عدل على الكود اللي يعطي الاعب السلاح وحط داتا يس للي اخذ السلاح اما تحطها لقروب كذا ماتصير
-
خذ هذا المثال حط سريالك وشوف عندك الكلام بيكون بالوان عشوائية رسالتك اللي في الشات الاحمر الازرق و الاصفر : 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 )
-
استعمل الجداول وضع لكل نافذه تايمر جرب كذا : 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
-
local AlphaTimer شيل الـ اللوكال
-
@Dr. @Mr.CoR @الجميع للي محتاج الويكي يقدر يحصل الاوفلاين كوبي هنا : الويكي كامل بدون نت
-
مادري كيف تبي تسويها ومدري وش المود اللي تستعملة لكن لازم تجيب كل الاعبين اللي مخزنين بوظيفة ومدري هالوظيفة عندك او لا لكن هذا مثال يجيب كل الاعبين اللي بالسيرفر واذا كان القروب حقهم سوات يحط الداتا يس ترو : 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 )
-
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,
-
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,
- 13 replies
-
- mta forums
- forums
-
(and 2 more)
Tagged with:
-
WHY _______________________________ PAIRS NOT!