Stranger
Members-
Posts
710 -
Joined
-
Last visited
Everything posted by Stranger
-
ويليت يا مستر سعد ولا عاشق تحطونه كامل
-
المود مافيه الا ملف واحد server يا شباب
-
-- Simple Police-Lights by MuLTi! p_lights = {} p_timer = {} p_lvar = {} p_pvar = {} p_lvar2 = {} p_lvar3 = {} p_lvar4 = {} function toggleLights(thePlayer, cmd, level) local level = tonumber(level) if not(level) then outputChatBox("#FF0000 Please select a level![1-2]", thePlayer, 255, 255, 255, true) return end if(level < 1) or (level > 2) then outputChatBox("#FF0000 Please select a level between 1-2!", thePlayer, 255, 255, 255, true) return end local veh = getPedOccupiedVehicle(thePlayer) local id = getElementModel(veh) if (id == 598) or (id == 596) or (id == 597) or (id == 599) then if(level == 1) then if(p_lights[veh] == 0) or(p_lights[veh] == nil) then p_pvar[veh] = 1 p_lights[veh] = 1 outputChatBox("#FFFFFFYour Police-lights has been #00FF00enabled.", thePlayer, 0, 200, 100, true) setVehicleOverrideLights ( veh, 2 ) p_timer[veh] = setTimer( function() if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then p_lvar[veh] = 1 setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 0, 0) p_lvar[veh] = 0 end end, 500, 0) else p_lights[veh] = 0 outputChatBox("#FFFFFFYour Police-lights has been #00FF00disabled.", thePlayer, 0, 200, 100, true) killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) end elseif(level == 2) then if(p_lights[veh] == 0) or(p_lights[veh] == nil) then p_lights[veh] = 1 outputChatBox("#FFFFFFYour Police-lights has been #00FF00enabled.", thePlayer, 0, 200, 100, true) setVehicleOverrideLights ( veh, 2 ) p_timer[veh] = setTimer( function() if(p_lvar3[veh] == 4) then setTimer(function() p_lvar3[veh] = 0 end, 1000, 1) setTimer( function() if(p_lvar4[veh] == 1)then p_lvar4[veh] = 0 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 77, 77, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 77, 77) p_lvar4[veh] = 1 end end, 50, 5) return end if(p_lvar2[veh] == 0) or (p_lvar2[veh] == nil) then p_lvar2[veh] = 1 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 0, 0) p_lvar2[veh] = 0 end if(p_lvar3[veh] == nil) then p_lvar3[veh] = 0 end p_lvar3[veh] = (p_lvar3[veh]+1) end, 500, 0) else p_lights[veh] = 0 outputChatBox("#FFFFFFYour Police-lights has been #00FF00disabled.", thePlayer, 0, 200, 100, true) killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) end end end end addCommandHandler("lights", toggleLights) addEventHandler ( "onVehicleExplode", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler ( "onVehicleRespawn", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler("onElementDestroy", getRootElement(), function () if getElementType(source) == "vehicle" then if(p_lights[source] == 1) then killTimer(p_timer[source]) end end end) الحين هذا السكربت لازم اكتب كلمه في اف 8 عشان يشتغل انا بيها بضغطة زر L يشتغل
-
خلاص فهمت يلبى تسلم والله
-
يا عاشق الشرق الحين اضيفهم للسكربت حقي هذولي ولا احطهم في سكربت لحالهم
-
وبعدين اذ ضغطت على سياره في علامه حقتها ولا على دباب في العلامه حقته يطلع سياره وحده بس ولا دباب واحد بس مابيهم يطلعون اثنين هنا ولا هنا
-
ياعناد انا قصدي اسوي علامتين يعني احط علامتين وفي كل علامه اروح فيها تفتح لي قائمة هنا سيارات مثلا وهنا دبابات بس اذ دخلت في علامه تطلع قائمه وحده بس نا تجيني قائمتين ماعرفت لها يليلت تكون فهمتني
-
اذ ضفت قائمة ثانيه في علامه لحالها علامه هنا وعلامه هنا تجيني قائمتين انا ابيها كل وحده في علامه +في كل علامه تطلع قائمة وحده
-
يا شباب الحين هذي قائمة وحده ابي اضيف قائمه ثانيه بدون ماتتكرر السيارات انا ضفت قائمه بس تبان لي قائمتين وتطلع سيارتين ابيها سياره وحده وقائمتين كل وحده في علامه addEvent("opening", true) local vehiclesTable = { ["ADMIN-CAR"] = 581, ["NRG-500"] = 522, ["ADMIN-CAR2"] = 462, ["PCJ-600"] = 461, ["ADMIN-CAR3"] = 521, ["ADMIN-CAR4"] = 463, } theWindow = guiCreateWindow(478, 201, 296, 372, "Select a vehicle", false) guiWindowSetSizable(theWindow, false) guiSetVisible(theWindow, false) theGridList = guiCreateGridList(9, 21, 278, 243, false, theWindow) guiGridListAddColumn(theGridList, "Available vehicles :", 0.9) for i = 1, 15 do guiGridListAddRow(theGridList) end guiGridListSetItemText(theGridList, 1, 1, "ADMIN-CAR", false, false) guiGridListSetItemText(theGridList, 2, 1, "NRG-500", false, false) guiGridListSetItemText(theGridList, 3, 1, "ADMIN-CAR2", false, false) guiGridListSetItemText(theGridList, 4, 1, "PCJ-600", false, false) guiGridListSetItemText(theGridList, 5, 1, "ADMIN-CAR3", false, false) guiGridListSetItemText(theGridList, 6, 1, "ADMIN-CAR4", false, false) Select = guiCreateButton(9, 270, 278, 38, "Select", false, theWindow) guiSetProperty(Select, "NormalTextColour", "FF") Close = guiCreateButton(10, 318, 277, 38, "Close", false, theWindow) guiSetProperty(Close, "NormalTextColour", "FF") addEventHandler("onClientGUIClick", root, function() if(source == Select)then local row, col = guiGridListGetSelectedItem(theGridList) local vehName = guiGridListGetItemText(theGridList, row, col) if(vehName and vehiclesTable[vehName])then guiSetVisible(theWindow, false) guiSetInputEnabled(false) if(vehName == "Sultan")then triggerServerEvent("spawningAVehicle", localPlayer, vehiclesTable[vehName], "Special") end triggerServerEvent("spawningAVehicle", localPlayer, vehiclesTable[vehName], "Else") end elseif(source == Close)then guiSetVisible(theWindow, false) guiSetInputEnabled(false) end end ) addEventHandler("opening", root, function(state) if(state == "true")then guiSetVisible(theWindow, true) guiSetInputEnabled(true) elseif(state == "false")then guiSetVisible(theWindow, false) guiSetInputEnabled(false) end end هذا ملف العلامه الي تبان يليت تفيدوني addEvent("spawningAVehicle", true) local Marker = createMarker(218.54807, 1862.53955, 13.140625-1, "cylinder", 1.5, 255, 0, 0, 180) addEventHandler("onMarkerHit", Marker, function(hitElem) if(getElementType(hitElem) == "player")then if not(isPedInVehicle(hitElem))then triggerClientEvent(hitElem, "opening", hitElem, "true") end end end ) local Upgrades = {1138, 1031, 1033, 1010, 1087, 1098, 1029, 1170, 1141} local vehicles = {} addEventHandler("spawningAVehicle", root, function(model, state) if(state == "Special")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil end vehicles[ client ] = createVehicle(model, getElementPosition(client)) setElementData(vehicles[ client ], "adminVehicle", "none") setVehicleDamageProof(vehicles[ client ], true) for i = 1, #Upgrades do addVehicleUpgrade(vehicles[ client ], Upgrades[i]) end warpPedIntoVehicle(client, vehicles[ client ]) elseif(state == "Else")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil end vehicles[ client ] = createVehicle(model, getElementPosition(client)) setElementData(vehicles[ client ], "adminVehicle", "none") setVehicleDamageProof(vehicles[ client ], true) warpPedIntoVehicle(client, vehicles[ client ]) end end ) addEventHandler("onPlayerQuit", root, function() if(vehicles[ source ])then destroyElement(vehicles[ source ]) vehicles[ source ] = nil end end )
-
لا يا شباب قصدي كود ينكتب بلوحة الدمنيه ولا في اف 8 ووتكلم
-
يعني تكتب كود وبعدين تكتب الكلام الي تبيه بعده ويظهر الكلام بالشات بدون مايبان اسممك
-
ابي كود يخليك تتكلم بدون مايبان اسمك تتكلم من لوحة الادمنيه ويظهر بالشات
-
مشكووور شباب يعطيكم العافيه سويت ريستارت ضبطت
-
السلام عليكم عندي مشكلة بالايديتور في استضافة ديلوكس شغلت الايديتور بس الادوات الي تحت ماتبان غيرته بواحد ثاني ونفس المشكله اتمنى فيه حل