mostafaragab2005 Posted February 11, 2016 Share Posted February 11, 2016 مشكلة في البرمجة شباب انا مبرمج مقر وكل شي تمام وفل اجي افتح حقت السيارات للمقر يفتح لي لوحتين و ينزل سيارتين وش اسوي ذي تصير معي كل شوي ومافي حل وش اسوي Link to comment
#Mr.Rajo~,< Posted February 11, 2016 Share Posted February 11, 2016 مشكلة في البرمجةشباب انا مبرمج مقر وكل شي تمام وفل اجي افتح حقت السيارات للمقر يفتح لي لوحتين و ينزل سيارتين وش اسوي ذي تصير معي كل شوي ومافي حل وش اسوي حط اكوادك Link to comment
mostafaragab2005 Posted February 11, 2016 Author Share Posted February 11, 2016 مشكلة في البرمجةشباب انا مبرمج مقر وكل شي تمام وفل اجي افتح حقت السيارات للمقر يفتح لي لوحتين و ينزل سيارتين وش اسوي ذي تصير معي كل شوي ومافي حل وش اسوي حط اكوادك ذا السيرفر local upgrades = {} upgrades[560] = {1138,1031,1033,1029,1170,1140} upgrades[559] = {1162,1072,1068,1066,1173,1161} upgrades[562] = {1147,1041,1038,1037,1172,1148} upgrades[575] = {1099,1044,1175,1177} upgrades[565] = {1050,1052,1054,1046,1153,1151} upgrades[561] = {1058,1063,1061,1064,1157,1156} upgrades[558] = {1164,1095,1091,1092,1166,1167} upgrades[534] = {1124,1127,1185,1180,1125} upgrades[567] = {1133,1132,1189,1187} upgrades[536] = {1108,1128,1105,1182,1184} upgrades[535] = {1121,1116,1114,1117} upgrades[576] = {1137,1136,1191,1193} upgrades[576] = {1137,1136,1191,1193,} MarkerCreateXX = 0 MarkerCreateYY = 6 MxXx1 = createMarker(1019.84698,1258.50269,10, "cylinder", 2, 4,250,10, 255 ) local x,y,z = getElementPosition ( MxXx1 ) MxXx2 = createMarker(1018.66473,1270.15845,10, "cylinder", 2, 4,250,10, 255 ) local x,y,z = getElementPosition ( MxXx2 ) addEventHandler("onMarkerHit", getResourceRootElement(), function(player) if( getElementData ( player, "Group" ) == "[FAST]" ) then if source == MxXx1 or source == MxXx2 or source == MxXx3 or source == MxXx4 or source == MxXx5 or source == MxXx6 or source == MxXx11 or source == MxXx22 or source == MxXx33 or source == MxXx44 or source == MxXx55 or source == MxXx66 then setTimer( function(player,source) local x, y, z = getElementPosition(source) local xx, yy, zz = getElementPosition(player) setElementPosition(player, xx, yy, z+0.5) triggerClientEvent ( player, "OpenWindowsW7h", player) end,150,1,player,source) end end end) function upgradeCar ( car ) addVehicleUpgrade ( car, 1010 ) addVehicleUpgrade ( car, 1098 ) local model = getElementModel(car) if ( upgrades[model] ) then for id, v in ipairs ( upgrades[model] ) do addVehicleUpgrade ( car, v ) end end end ----------------------------------- cars = {} carsTimer = {} function onExplorerW7h () setTimer( function(car) if (isElement(car)) then destroyElement(car) end end,5000, 1, source) end function onEnterCarW7h(player,seat) if (seat >= 0 ) and ( getElementData ( player , "Group" ) ~= "[FAST]" ) then cancelEvent() outputChatBox("This Only For Group [FAST]",player, 255, 0, 0, true) end end function xxxcrete (carName) local id = getVehicleModelFromName(carName) if (id) then if (isElement(cars[source])) then destroyElement(cars[source]) end if ( getVehicleType ( id ) == "Helicopter" ) then local place = getElementByID( "AirW7h"..tostring(math.random(1,6)) ) local x,y,z = getElementPosition ( place ) local rx,ry,rz = getElementRotation ( place ) cars[source] = createVehicle(id, 1078.87415,1253.58313,13.82813, xz) else local x, y, z = getElementPosition(source) cars[source] = createVehicle(id, x-0,y-5 ,z , 0, 0, 270) upgradeCar ( cars[source] ) end setVehicleColor( cars[source], 0,0,255 ) setVehiclePaintjob ( cars[source], 2 ) warpPedIntoVehicle(source, cars[source]) addEventHandler("onVehicleExplode", cars[source], onExplorerW7h ) addEventHandler ("onVehicleStartEnter", cars[source], onEnterCarW7h ) end end addEvent("CreateCarW7h", true) addEventHandler("CreateCarW7h", root, xxxcrete ) function isVehicleEmpty(veh) local cc = false local occupants = getVehicleOccupants(veh) local seats = getVehicleMaxPassengers(veh) for seat = 0, seats do if occupants[seat] then cc = true end end return end Link to comment
mostafaragab2005 Posted February 11, 2016 Author Share Posted February 11, 2016 ترا كمان لما اجي اركب السيارة الخربانه الثانية يقولي انك ماتقدر تركب ذي السيارة لئنها حقت قروب ثاني في سيرفري Link to comment
mostafaragab2005 Posted February 11, 2016 Author Share Posted February 11, 2016 بالله رد Link to comment
Jupi Posted February 11, 2016 Share Posted February 11, 2016 حكاية السيارتين من التريقر غير اسمه في كل مود Link to comment
mostafaragab2005 Posted February 11, 2016 Author Share Posted February 11, 2016 حكاية السيارتين من التريقر غير اسمه في كل مود شكر طيب الحين انا لما اخذ سيارة ياخذ واحدة بس ياخذ حق القروب الاخر وش اسوي غيرت كل الترقرات و الحين ياخذ حق القروب الثاني وش اسوي يعني انا لو اخذت سيارة من سيارات قروبي ياخذ سيارة قروب الثاني ولو اغير لونها يضل نفس الشي حق القروب الثاني حتي بعد تغير كل الترقرات Link to comment
mostafaragab2005 Posted February 11, 2016 Author Share Posted February 11, 2016 ولو وقفت ماب المقر الثاني مايشتغل لو ااجي اخذ سيارة مايجي ابدا Link to comment
mostafaragab2005 Posted February 11, 2016 Author Share Posted February 11, 2016 ردو بالله Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now