yurifoborghi Posted May 25, 2011 Share Posted May 25, 2011 (edited) Well, I've been helped in the script to fix all the cars from a race server. Now, I need help creating a script that put a ramp in front of all survivors of the race. The script that I have used to put the ramp in front of just one car, but I need one that put a ramp in front of all cars. This is the script that I have: *Script removed. Can someone help me create this script? Edited May 26, 2011 by Guest Link to comment
Castillo Posted May 26, 2011 Share Posted May 26, 2011 function st3reo7 (thePlayer, commandName) for i,v in pairs(getElementsByType("player")) do if isPedInVehicle(v) and getElementData(v,"state") == "alive" then local vehicle = getPedOccupiedVehicle(v) local x, y, z = getElementPosition ( vehicle ) local rx, ry, rz = getVehicleRotation ( vehicle ) local stereo = createObject ( 3080, x, y, z, rx, ry, rz ) attachElements ( stereo, vehicle, 0, 4, -1, 0, 0, 180 ) outputChatBox( getPlayerName(thePlayer).. " Give Ramp " ..getPlayerName(v), getRootElement(), 255, 255, 0, true) end end end addCommandHandler("ramp", st3reo7) Link to comment
HunT Posted May 26, 2011 Share Posted May 26, 2011 This is my script. Castillo remove please. Link to comment
Castillo Posted May 26, 2011 Share Posted May 26, 2011 What do you mean? he stole your script? Link to comment
HunT Posted May 26, 2011 Share Posted May 26, 2011 Dont is stole. . .But is my script. Yury i hate u Link to comment
Deagle Posted May 28, 2011 Share Posted May 28, 2011 I think he means that Yuri wants to copy that ramp script ideea from the HUNT3R's map , Destination Final. 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