حط اكوادك
ذا السيرفر
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