-
Posts
4,805 -
Joined
-
Last visited
-
Days Won
10
Everything posted by فاّرس
-
انا ما قلت إني فاهم ومآ اعتقد إني اقدر اسويه, + كنق @ لازم احداثيات للصواريخ, لانه اكيد يبيها تلحق اللاعب , واذا يبيها تلحق اللاعب لازم احداثيات, الشغله معقده ذذ
-
^ يقدر يستخدم call ولا ؟ انا غلطان؟
-
مآ ضبطت؟ ورنآ وش سويت + ترا الشغله معقده ويبي لها واحد فآهم.
-
يحتاج حدث onClientPlayerJoin + حآول ع الاقل تسوي ونسآعدك onClientPlayerJoin ^ This event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. It would also be possible for two players to join within a few seconds of each other and for the two players' scripts may not receive onClientPlayerJoin events as their scripts wouldn't have started yet. Use: onClientResourceStart هو وش يقول ؟ اذا اللاعب دخل, بس ما يجي لا كودي ولا كودك, لازم ترايقر سيرفر onPlayerJoin , لان السيرفر يحمل قبل الكلنت,
-
يحتاج حدث onClientPlayerJoin + حآول ع الاقل تسوي ونسآعدك
-
You're welcome
-
I'm do not understand ! If you want to reduce the speed of use: setElementVelocity
-
Try it : Pic = guiCreateStaticImage(230,30,134,289,"1.png",false); Button = guiCreateButton(254,163,113,46,"",false) images = {"1.png","2.png","3.png"} addEventHandler("onClientGUIClick",root, function () if (source == Button) then for _,Image in ipairs(images) do guiStaticImageLoadImage (Pic,Image); end end end)
-
مآ يحتاج مثآل, اربط الايديت بالزر وارسل ترايقر للسيرفر, ولا تنسى tonumber سهل ما يحتاج ذذ
-
^ طيب سوي ماركر ثآني آنت ؟
-
https://community.multitheftauto.com/index.php?p= ... ls&id=2682
-
وش تبي تسوي الحين ؟ عشآن نقدر نفيدك؟
-
viewtopic.php?f=160&t=58413
-
Hummm, can you use: TXD and DFF
-
ترجع الشيء او توقف الوظيفه, مثل ما قال تابل وجودها مثل عدمها,
-
Marker = {} Marker[1] = createMarker(...) function Hit (player) if (getElementType(player) == 'player' ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then setElementPosition(player,x,y,z) else outputChatBox("* Error : You're Not Admin") end end end addEventHandler("onMarkerHit",Marker[1],Hit) ^ هذا مثآل, وانت سو الماركر الثاني بس غير الاحداثيآت Edit# : سويت له الاول حق النافذه خلوه يحاول,
-
وش المشكلة بالضبط؟ سو لها حدث , function Team () Dmar = createTeam ( "Dmar", 0, 0, 255 ) Swat = createTeam ( "Swat", 0, 0, 255 ) SMoD = createTeam ( "SMoD", 0, 0, 255 ) end addEventHandler("onResourceStart",resourceRoot,Team) addEvent("Setting",true) addEventHandler("Setting",root, function( ) setPlayerNametagText ( source, '[DMAR]' .. getPlayerName ( source ) ) setPlayerTeam ( source , Dmar ) end) addEvent("Setting2",true) addEventHandler("Setting2",root, function() setPlayerNametagText ( source, '[sWAT]' .. getPlayerName ( source ) ) setPlayerTeam ( source , Swat ) end) addEvent("Setting3",true) addEventHandler("Setting3",root, function() setPlayerNametagText ( source, '[sMoD]' .. getPlayerName ( source ) ) setPlayerTeam ( source , SMoD ) end ) اذا ما ضبط اطرح الكلنت,
-
createMarker getElementType isObjectInACLGroup getAccountName getPlayerAccount setElementPosition "onMarkerHit" guiSetVisible حاول تسوي ونصحح لك
-
جرب , local Object = createObject ( 8172 ,136.19999694824 ,1942.4000244141 ,21.10000038147 ,0 ,0 ,0 ) local Marker = createMarker ( 141.60000610352 ,1946.8000488281 ,18.10000038147 ,"cylinder",5 , 170 ) function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then moveObject ( Object,140.19999694824 ,198.4000244141 ,15.10000038147 ) else moveObject ( Object,136.19999694824 ,1942.4000244141 ,21.10000038147 ) end else outputChatBox ( "* You must be 'Admin' !", player, 200, 0, 0, true ) end end addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "tab", "down", OpenObject ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "tab", "down", OpenObject ) end )
-
جرب , Vehicle = {} addEvent("nothing", true) addEventHandler("nothing",root, function() Vehicle[source] = {} if not Vehicle[source] then end end if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341-005,269.57095336914 ) warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) setElementModel(source,45) ) addEventHandler("onVehicleStartExit",root, function () if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then cancelEvent( true ) end end ) addEventHandler("onPlayerQuit",root, function ( ) if ( Vehicle[source] ) then if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source] = nil end end )