WASSIm. Posted June 4, 2013 Share Posted June 4, 2013 hi all i have problem local theVehicleID = {} local intVehicles = getVehicles () function vehicles(hitElement, mathchingDimension) if (theVehicleID[source]) then local vehicleID = theVehicleID[source] if (seat == 0) then if not (( getPlayerTeam( thePlayer ) ) and ( getTeamName( getPlayerTeam( thePlayer ) ) == "STAFF" ) or ( getTeamName( getPlayerTeam( thePlayer ) ) == intVehicles[vehicleID][10] ) or (getElementData(source, "gang")) and (getElementData(source, "gang")) == intVehicles[vehicleID][11]) then cancelEvent() exports.dxhelp:createNewHelpMessageForPlayer(thePlayer,"Only "..exports.server:getPlayerGroupName(source).." can enter this vehicle", 255, 0, 0) end end end end for ID=1,#intVehicles do local x, y, z, rx, ry, rz, int, dim, id = intVehicles[ID][1], intVehicles[ID][2], intVehicles[ID][3], intVehicles[ID][4], intVehicles[ID][5], intVehicles[ID][6], intVehicles[ID][7], intVehicles[ID][8], intVehicles[ID][9] local theVehicle = createVehicle ( id, x, y, z, rx, ry, rz ) setElementRotation(theVehicle, rx, ry, rz) setElementInterior(theVehicle, int, x, y, z) setElementDimension(theVehicle, dim) theVehicleID[theVehicles] = ID addEventHandler("OnVehicleEnter", theVehicle, vehicles) end local intVehicles = { {1265.599609375, -1611.8994140625, 14.699999809265, 0, 0, 1227.14, -1616.8994140625, 74.800003051758, 272.67657470703, 0, 0, "SWAT Team", "SWAT"}, --SWAT BASE {2548.69995117,2839.19995117,28.10000038, 0, 0, 0, 0, 0, 488, "STAFF", "STAFF"}, -- SWAT BASE } function getVehicles () return intVehicles end Link to comment
WASSIm. Posted June 4, 2013 Author Share Posted June 4, 2013 This script is yours? yes Link to comment
Castillo Posted June 4, 2013 Share Posted June 4, 2013 I'm not so sure about that, mind sending me the whole script via PM? Link to comment
Castillo Posted June 4, 2013 Share Posted June 4, 2013 For some reason I think the script isn't yours, so I would like to see the full code. Link to comment
WASSIm. Posted June 4, 2013 Author Share Posted June 4, 2013 this is full code. really this old script interior and i edit for make script spawn car just get some code Link to comment
Castillo Posted June 4, 2013 Share Posted June 4, 2013 That's what I though, you edited an script which isn't yours, it was leaked from CSG, made by Dennis ( UniOn ). Topic locked. Link to comment
Recommended Posts