-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
well you can use setTimer to fix it ,
-
الله يعطيك العافية حبيبي , كذا صح ؟ local Positions = { [ "Interiors" ] = { 10, 5 }, [ "Dimensions" ] = { 5, 6, 7 }, [ "Pos" ] = { 23214, 234234, 10.5 } } local Marker1 = createMarker ( 376.56619, -68.11906, 1000.51514,"cylinder",2,255,0,0,255) for i = 1, #Positions[ "Dimensions" ] do setElementDimension ( Marker1, Positions[ "Dimensions" ][i] ) end for i = 1, #Positions[ "Interiors" ] do setElementInterior ( Marker1, Positions[ "Interiors" ][i] ) for i = 1, #Pos ["Pos"] do setElementPosition ( localPlayer, Pos [ "Pos" ] [i] ) end لان ودي اتعلم التيبل واختصر اكوادي ,
-
زاحف بعد اذنك ياليت تشرح لي الكود ايش هي i + i = 1 ? ليه ماحطيتها i = 2 ? لان عندي القيم مود حقي اكواده كثير وودي احولها تيبل ,
-
اتوقع يبي الماركر , باكثر من مكان , وبكذا نصحته بالتيبل ,
-
انا مادري ليه تستخدم الفنكشن اكثر من مره , حولهم تيبل وريح راسك ,
-
Try This , vehicle1 = createVehicle(487, 2798, 2548.900390625, 22.700000762939, 0, 0, 43.994750976563) -- This car can be toggleVehicleRespawn ( vehicle1 , true ) setVehicleRespawnDelay ( vehicle1 , 10000) -- Araç patladıktan kaç saniye sonra respawnlanacağını belirtir. setVehicleIdleRespawnDelay ( vehicle1 , 60000) -- state = setVehicleDoorState ( vehicle1, 1, 1 ) setVehicleDamageProof ( vehicle1, true ) -----car won't take damage (change it to false if you want to take damage) function lockPrivate( seat ) if isPedInVehicle (source, vehicle1 ) and ( seat ~= 0 ) and getPlayerTeam(getTeamName( source ) == 'Admins' ) then cancelEvent ( ) exports.ORCcommands:sendMessage("Buna Binmen İçin Admin Olman Gerek.", source, 255, 190, 0) else exports.ORCcommands:sendMessage("Tekrar Hoşgeldin Admin Bey.", source, 255, 190, 0) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate) Make sure it's ServerSide , on meta.xml
-
يارجل الماركر اسمه marker1 , والفنكنش Marker1 شفت الفرق ؟ ذاك كبتل وذاك سمول هههههههههههههه
-
Marker1 وشوف الماركر اسمه ايش ,
-
why you are using the same functions and events, more than 1 time ?
-
local theMarker = createMarker ( X,Y, Z, "corona", 5, 0, 0, 0, 0 ) -- x, y , z position addEventHandler ("onClientMarkerHit", theMarker, function ( ) if ( isElement( localPlayer) ) and ( getElementType( localPlayer ) == "player" ) and getPlayerTeam(getTeamName( localPlayer ) == 'Name' ) then ---- Change Name to the team name guiSetVisible ( GUIEditorWindow[1], true ) ---- Chabge GUIEditorWindow[1] to window name end end )
-
اذا تبيه يظهر فوق الشاشه , بعد مايدخل , تقدر تستخدم dxDrawText , onClientPlayerJoin , وتقدر تستخدمها سيرفر بس لازم تسوي معها , تريقر , او انك تخلي الايفنت onPlayerJoin ,
-
Try this , addEventHandler( "onClientPlayerWeaponFire", root, function () if ( isElement( localPlayer) ) and ( getElementType( localPlayer ) == "player" ) and getPedTotalAmmo ( localPlayer ) <= 1 then toggleControl ( "fire", false ) end end )
-
وظيفة سحب الفلوس ماتضبط كلينت لانه ماراح تتغير الفلوس , حولها لسيرفر وسوي تريقر يعني افضل شي تحوله كل الوظيفة الى سيرفر , GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(195,158,415,320,"food panel",false) GUIEditor_Button[1] = guiCreateButton(149,125,112,64,"+20",false,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) bindKey ( "f3", "down", function ( ) local guiStatus = not guiGetVisible ( GUIEditor_Window[1] ) guiSetVisible ( GUIEditor_Window[1], guiStatus ) showCursor ( guiStatus ) guiSetInputEnabled(guiStatus) end ) addEventHandler('onClientGUIClick', root, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent('Take', localPlayer ) end end ) ---------ServerSide , addEvent ( 'Take ' , true ) addEventHandler('Take' , root, function ( ) if getPlayerMoney ( source ) >= 100 then takePlayerMoney ( source , 100 ) setElementHealth ( source, 100 ) outputChatBox ( ' * we have take $ 100 as an bayment for the Food and you have gained Extra Health * ', source, 255, 255, 0 ) else outputChatBox( "(( You don't have enough cash! ))", source, 255, 0, 0 ) end end )
-
Events : onColShapeHit Events : onColShapeLeave playSound3D stopSound bindKey
-
حدث سيرفر مع فنكشنات كلنت + كذا بتخليه اذا دخل الكول شيب بيصير الاغنية 3D يعني الي قريب من الكول شيب بيسمعها هو قصده اذا خش الكول شيب يسمعه لحاله الاعب عالعموم الكود يصير كذا [b]local Col = createColSphere ( x, y, z, 1 ) local url = "http://www.google.com/sound.mp3" addEventHandler('onClientColShapeHit', Col, function ( element) if element == getLocalPlayer() then sound = playSound( url,true ) setSoundVolume ( sound, 0.5 ) end end ) --- addEventHandler('onClientColShapeLeave',Col, function (element) if element == getLocalPlayer() then stopSound(sound) end end )[/b] ادري والله , بس انا نسيت ان فيه كلينت ايفنت ,للكولشيب , + ليه تستخدم getLocalPlayer() , اختصرها , localPlayer ,
-
onColShapeHit > onClientColShapeHit getElementType > getLocalPlayer _ + لزوم تطفي الاغنية يوم يخرج اللاعب اي والله نسيت انه كلينت , + هو ماطلب يوقف الاغنية , لاكن لعيونك بضبطه ذذ تم التعديل #
-
local Col = createColSphere ( x, y, z, 1 ) --- x, y, z change to position local url = "http://www.google.com/sound.mp3" --- url of the song addEventHandler('onClientColShapeHit', Col, function ( uPlayer ) if ( getElementType ( uPlayer ) == localPlayer ) then sound = playSound3D( url, 1496.7551269531, 786.17156982422, 113.31844329834 ) setSoundVolume ( sound, 0.5 ) setSoundMaxDistance(sound, 10) end end ) addEventHandler( 'onClientColShapeLeave', Col , function ( uPlayer ) if ( getElementType ( uPlayer ) == localPlayer ) then stopSound(sound) end end )
