-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
اسسف على اللي سويته كننت في غفلهه .. # مثلا لو مسسوي مود حصري ولا ابي احد يفككه كيف .. ؟ Wiki : <script /> Source code for this resource, possible parameters are: src: The file name of the source code type: The type of source code: "client", "server" or "shared". cache: When the script file type is "client", this setting controls whether the file is saved on the players hard drive. Default is "true". Using "false" will mean the file is not saved. validate: If set to "false", compatibility checks are skipped. https://wiki.multitheftauto.com/wiki/Meta.xml
-
You're not make much sense anyway try this : -- Client Side -- addCommandHandler('events', function ( ) triggerServerEvent ('aCheckGroup',localPlayer) end ) addEvent('aCheckDone',true) addEventHandler('aCheckDone',root, function ( ) state = guiGetVisible ( myWindow ) guiSetVisible ( myWindow,not state ) showCursor ( state ) end ) function closeGUI ( ) guiSetVisible ( myWindow, false ) showCursor( false ) end addEventHandler("onClientGUIClick", myButton8, closeGUI, false) -- Server Side -- addEvent('aCheckGroup',true) addEventHandler('aCheckGroup',root, function ( ) if isGuestAccount ( getPlayerAccount ( client ) ) then return false end local aPlayerAccount = getAccountName ( getPlayerAccount ( client ) ) if isObjectInACLGroup ('user.'..aPlayerAccount, aclGetGroup ( 'Admin' ) ) then triggerClientEvent ( client,'aCheckDone',client ) else outputChatBox('Access denied',client,255,0,0) end end )
-
https://forum.multitheftauto.com/viewtopic.php?f=160&t=45807&start=495#p582541 اذا بتسوي مودات و تشفرها وماتبي ينفك تشفيرها وتخرب رومات خلق الله .. صعب هالشيء
-
setElementPostion ( getLocalPlayer, 2768, 2455, 14 ) To : setElementPosition ( element, 2768, 2455, 14 ) getLocalPlayer it's a client side player only.
-
تيتي عطاك الرابط اضغط على coleditor وحملة
-
onClientPlayerDamage or onPlayerDamage or onClientRender .
-
local images = { "1.png","2.png" }; local Time = 5000; local lastTick = getTickCount ( ); local img = 1; function Handler( ) local curTick = getTickCount ( ); if ( curTick - lastTick > Time ) then img = ( img >= #images and 1 or img + 1 ); guiStaticImageLoadImage ( windows, images [ img ] ); lastTick = curTick; end; end; bindKey ( 'F1','down', function ( ) if not guiGetVisible ( windows ) and not aSound then guiSetVisible ( windows,true ); addEventHandler ( "onClientRender", root,Handler ); aSound = playSound ( 'sound.wav',true ); else guiSetVisible ( windows,false ); removeEventHandler ( "onClientRender", root,Handler ); destroyElement ( aSound ); aSound = nil; end; end );
-
Read the wiki about color argument's .
-
ليه ما تختصر أحسن؟ bindKey ( 'F1','down', function ( ) if not guiGetVisible ( windows ) and not aSound then guiSetVisible ( windows,true ); playSound ( 'sound.wav' ); else guiSetVisible ( windows,false ); stopSound ( 'sound.wav' ); end; end ); بس غيرت الفنكشن و شلت النيل صار اختصار .. ؟ يعيني بسس
-
-- # Client Side .. bindKey ( 'F1','down', function ( ) if not guiGetVisible ( windows ) and not aSound then guiSetVisible ( windows,true ); aSound = playSound ( 'sound.wav' ); else guiSetVisible ( windows,false ); destroyElement ( aSound ); aSound = nil; end; end ); لم يتم التجربة ..
-
مافهمتك بس شوف وش اللي وصل لي تضغط اف 1 يجي صوت وصورة .. تضغطة مرة ثانية يروح الصوت و الصورة وكذآ صح؟
-
So? He can change it to learn .
-
the marker you just created is under the gate object = createObject ( 975, 2596.3100585938, -2015.4100341797, 4.539999961853 ) marker = createMarker ( x,y,z - 2, "cylinder", 2, 100, 0, 0, 100 ) local x,z,y = getElementPosition( object ) function gateo ( player ) local skin = getElementModel ( player ) if ( skin == 248 ) then moveObject ( object, 100, 2599, -2015.4100341797, 4.539999961853 ) else outputChatBox ( "sorry, you're not a SoA member, this gate will not open for you.", player, 255, 0, 0 ) end end addEventHandler ( "onMarkerHit", marker, gateo ) function getec ( player ) moveObject ( object, 975, 2596.3100585938, -2015.4100341797, 4.539999961853 ) end addEventHandler ( "onMarkerLeave", marker, getec ) lol? This isn't a problem he can change it castro code should work just fine.
-
You're welcome . No idea about the race .
-
As what i thought try with a timer : function ( ) setTimer( function ( ) local thevehicle = getPedOccupiedVehicle ( localPlayer ) setVehicleHeadLightColor ( thevehicle, 0, 255,0 ) setVehicleColor( thevehicle, 0, 0, 255 ) end,3000,1 ) end addEventHandler ( "onClientPlayerSpawn", getRootElement(), )
-
Did it work?
-
debugscript 3 ? جربتة اشتغل
-
function ( ) local thevehicle = getPedOccupiedVehicle ( localPlayer ) setVehicleHeadLightColor ( thevehicle, 0, 255,0 ) setVehicleColor( thevehicle, 0, 0, 255 ) end addEventHandler ( "onClientPlayerSpawn", getRootElement(), ) I'm not sure if the player will have a vehicle when he spawn .
-
Copy paste : -- Client Side -- bindKey('F1','down', function ( ) triggerServerEvent ('aCheckGroup',localPlayer) end ) addEvent('aCheckDone',true) addEventHandler('aCheckDone',root, function ( state ) if state and not guiGetVisible ( aWindow ) then guiSetVisible ( GUIEditor.window[1],state ) end end ) -- Server Side -- addEvent('aCheckGroup',true) addEventHandler('aCheckGroup',root, function ( ) if isGuestAccount ( getPlayerAccount ( client ) ) then return false end local aPlayerAccount = getAccountName ( getPlayerAccount ( client ) ) if isObjectInACLGroup ('user.'..aPlayerAccount, aclGetGroup ( 'Admin' ) ) then triggerClientEvent ( client,'aCheckDone',client,true ) else outputChatBox('Access denied',client,255,0,0) end end ) لم يتم التجربة
-
و عشان نزيد كيف تبينا نزيد ~ قصدك تايمر مفتوح ؟ لا شوف الكود وشوف هو تايمر مفتوح ولالا واقرا الويكي عن التايمر
-
وحاط يتصل بـ السيرفر يوم تتصل ترجع تتصل للكلنت تظهر الالمنت
-
الله يسلمك بس عساك سويتة