Stranger
Members-
Posts
710 -
Joined
-
Last visited
Everything posted by Stranger
-
بالنسبه لطلبك استخدم setVehicleRotation + الكود شغال للعصابه بس فقط !! اانا مجربه شف امكن المشكله منك
-
تعبتك معي :] تعبك راحه !! ملاحظه ,, عدلت في الكود شي كان خربان المهم هذا التصحيح !! Server ! --**************** -- By Manster .. --**************** addEvent("Vehiclee", true) Markers = { [1] = { x,y,z }, -- احداثيات الماركر [2] = { x,y,z }, -- احداثيات الماركر [3] = { x,y,z }, -- احداثيات الماركر [4] = { x,y,z }, -- احداثيات الماركر [5] = { x,y,z }, -- احداثيات الماركر } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) end end ) addEventHandler("onMarkerHit", resourceRoot, function(hitElem) if(getElementType(hitElem) == "player")then if getElementData ( hitElem,'Group' ) == 'Group Name' then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) else if not(isPedInVehicle(hitElem))then triggerClientEvent(hitElem, "open", hitElem, "true") end end end end ) local vehicles = {} addEventHandler("Vehiclee", root, function(model, state) if(state == "Cars")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil vehicles[ client ] = createVehicle(model, getElementPosition(client)) end warpPedIntoVehicle(client, vehicles[ client ]) elseif(state == "[GHOST]")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil end vehicles[ client ] = createVehicle(model, getElementPosition(client)) warpPedIntoVehicle(client, vehicles[ client ]) setVehicleColor(vehicles[ client ], 255, 0, 0 ) -- هنا تلون السياره setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب الشكل ! end end ) addEventHandler("onPlayerQuit", root, function() if(vehicles[ source ])then destroyElement(vehicles[ source ]) vehicles[ source ] = nil end end )
-
Client ! addEvent("open", true) local GHOST = { ["Sultan"] = 560, ["NRG-500"] = 522, ["PCJ-600"] = 461, ["Jester"] = 559, ["Infernus"] = 411, ["Huntely"] = 579, ["HotKnife"] = 434, ["Euros"] = 587, ["Elgy"] = 562, ["Elegant"] = 507, ["Cheetah"] = 415, ["Bullet"] = 541, } Wind = guiCreateWindow(478, 201, 296, 372, "GHOST Vehicles", false) guiWindowSetSizable(Wind, false) guiSetVisible(Wind, false) GRID = guiCreateGridList(9, 21, 278, 243, false, Wind) guiGridListAddColumn(GRID, "Vehicle :", 0.9) for i = 1, 15 do guiGridListAddRow(GRID) end guiGridListSetItemText(GRID, 1, 1, "Sultan", false, false) guiGridListSetItemText(GRID, 2, 1, "NRG-500", false, false) guiGridListSetItemText(GRID, 3, 1, "PCJ-600", false, false) guiGridListSetItemText(GRID, 4, 1, "Jester", false, false) guiGridListSetItemText(GRID, 5, 1, "Infernus", false, false) guiGridListSetItemText(GRID, 6, 1, "Huntely", false, false) guiGridListSetItemText(GRID, 7, 1, "HotKnife", false, false) guiGridListSetItemText(GRID, 8, 1, "Euros", false, false) guiGridListSetItemText(GRID, 9, 1, "Elgy", false, false) guiGridListSetItemText(GRID, 10, 1, "Elegant", false, false) guiGridListSetItemText(GRID, 11, 1, "Cheetah", false, false) guiGridListSetItemText(GRID, 12, 1, "Bullet", false, false) Select = guiCreateButton(9, 270, 278, 38, "Select", false, Wind) guiSetProperty(Select, "NormalTextColour", "FFAAAAAA") Close = guiCreateButton(10, 318, 277, 38, "Close", false, Wind) guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick", root, function() if(source == Select)then local row, col = guiGridListGetSelectedItem(GRID) local Veh = guiGridListGetItemText(GRID, row, col) if(Veh and GHOST[Veh])then guiSetVisible(Wind, false) guiSetInputEnabled(false) if(Veh == "Sultan")then triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "Cars") end triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "[GHOST]") end elseif(source == Close)then guiSetVisible(Wind, false) guiSetInputEnabled(false) end end ) addEventHandler("open", root, function(state) if(state == "true")then guiSetVisible(Wind, true) guiSetInputEnabled(true) elseif(state == "false")then guiSetVisible(Wind, false) guiSetInputEnabled(false) end end ) Server ! --**************** -- By Manster .. --**************** addEvent("Vehiclee", true) Markers = { [1] = { x,y,z }, -- احداثيات الماركر [2] = { x,y,z }, -- احداثيات الماركر [3] = { x,y,z }, -- احداثيات الماركر [4] = { x,y,z }, -- احداثيات الماركر [5] = { x,y,z }, -- احداثيات الماركر } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) end end ) addEventHandler("onMarkerHit", resourceRoot, function(hitElem) if(getElementType(hitElem) == "player")then if getElementData ( hitElem,'Group' ) == 'Group Name' then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) else if not(isPedInVehicle(hitElem))then triggerClientEvent(hitElem, "open", hitElem, "true") end end end end ) local vehicles = {} addEventHandler("Vehiclee", root, function(model, state) if(state == "Cars")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil vehicles[ client ] = createVehicle(model, getElementPosition(client)) setVehicleColor( vehicles[ client ], 255, 0, 0 ) setVehiclePaintjob(vehicles[ client ], 0) end warpPedIntoVehicle(client, vehicles[ client ]) elseif(state == "[GHOST]")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil end vehicles[ client ] = createVehicle(model, getElementPosition(client)) setVehicleColor( vehicles[ client ], 255, 0, 0 ) -- ! هنا لو تبي تغير لون السياره setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب يعني الشكل ! warpPedIntoVehicle(client, vehicles[ client ]) end end ) addEventHandler("onPlayerQuit", root, function() if(vehicles[ source ])then destroyElement(vehicles[ source ]) vehicles[ source ] = nil end end ) ملاحظه ,, السيارات جاهزه
-
شرح كافي وافي ,, واصل بدون فواصل !!
-
انا جربت الكود بالسياره ما دخلني !! تأكد امكن عندك شي خطأ
-
اسف عتاخير الرد شكرا لك بجرب وبردلك خبر العفو خذ راحتك ذذ
-
ماركر البيت --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ماركر دم ودرع --******************* -- By Manster .. --******************* marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true) setPedArmor (player, 100) setElementHealth (player,100) end end end ) ماركر النقل local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر addEventHandler ("onMarkerHit",mr11, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true) setElementPosition ( player , x,y,z ) -- مكان الانتقال end end end ) Group Name = اسم القروب حقك
-
كذا ؟ Markers = { } addCommandHandler( "Marker", function (player) x,y,z = getElementPosition(player) Markers = createMarker ( x,y,z-1, "cylinder", 1.5, 255, 255, 0, 170 ) if (getElementType(player) == ("player")) then if ( getElementHealth ( player ) >= 100 ) then return end -- My Code end end ) ابيه اذا واحد طلع الماركر بالكلمه يقدر يخفيها بنفس الكلمه + مايقدر يطلع غير ماركر واحد + اذا واحد لمس الماركر غير الي طلعه يعبي دمه بعد
-
السلام عليكم يا شباب ابيكم تعدلون لي الكود ذا ابيه اذا واحد طلع الماركر بالكلمه يقدر يخفيها بنفس الكلمه + مايقدر يطلع غير ماركر واحد + اذا واحد لمس الماركر غير الي طلعه يعبي دمه بعد addCommandHandler( "Marker", function (player) x,y,z = getElementPosition(player) marker = createMarker ( x,y,z-1, "cylinder", 1.5, 255, 255, 0, 170 ) if (getElementType(player) == ("player")) then if ( getElementHealth ( player ) >= 100 ) then return end -- My Code end end )
-
الكود ما ضبط GUIEditor = { label = {}, window = {}, } GUIEditor.window[1 = guiCreateWindow(223, 222, 298, 67, "Zombie Kills", false) guiWindowSetSizable(GUIEditor.window[1, false) guiSetProperty(GUIEditorwindow[1, "CaptionColour", "FFFE0000") gLabel = guiCreatLabel(15, 29, 105, 18, "", false, GUIEditor.window[1]) guiLabelSetColor(gLabel, 126, 248, 6 guiSetVisible ( GUIEditor.window[1], false ) addEventHandler('onClientElementDataChange',root, function ( dataName ) if dataName == "Zombie kills" then local gKillsClient = getElementData ( localPlayer,'Zombie kills' ) or 'N/A' guiSetText ( gLabel,'Total Zmbie Kills : '..gKillsClient ) end end )
-
جرب addEvent("PlayerJoin",true) addEventHandler("PlayerJoin",root, function (plr) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("The Player [ ".. getPlayerName(plr) .."] Join The Server", 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender",root,dx) setTimer(removeEventHandler,5000,1,"onClientRender",dx) end )
-
كفوو ضبط بس في ملاحظة الكتابة مايروح له دقيقتين لو تخليه 15 ثانية لاهنت Client addEvent("PlayerJoin",true) addEventHandler("PlayerJoin",root, function (plr) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("The Player [ ".. getPlayerName(plr) .."] Join The Server", 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender",root,dx) setTimer(removeEventHandler,15000,1,"onClientRender",dx) end )
-
طيب لاهنتم ابي مثال على الليبل ,,
-
السلام عليكم شباب نقول مثلا سويت لوحه , كيف احط فيها اذا الاعب ذبح زومبي يطلع في اللوحه
-
function type() setTimer(function() setGameType ( " اكتب الي تبيه هنا " ) end, 30000, 1, true) setTimer(function() setGameType ( "اكتب الي تبيه هنا " ) end, 60000, 1, true) setTimer(function() setGameType ( "اكتب الي تبيه هنا " ) setTimer(type, 120000, 1, true) end, 120000, 1, true) end addEventHandler("onResourceStart", getRootElement(), type)
-
يعني وش استخدم ؟ يا صديق !!