-
Posts
2,753 -
Joined
-
Last visited
-
Days Won
18
Everything posted by Captain Cody
-
Well I guess so. I'll try to make one later.
-
well instead of setVehicleRoation, do TrainDirection ( train, 1) --- or 0, depending on direction yeh want.
-
The link I put contains everything you need, it checks if the playey is an a certain ACL, if so you can use that to lower the price, or set price to 0.
-
No, but I could try to make one, just need to get correct cords and stuff for camera placement.
-
function Gift (thePlayer,command,who,text,...) if text then local text = table.concat ( { ... }, " " ) outputChatBox("Admin "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "").." --> "..who.." [Reason: "..text.."]", root, 255, 0, 0, true) else return end end addCommandHandler("gift", Gift)
-
If you were so you could figure out how to do this yourself. A "Pro" could do this in a matter of minutes, seeing as you're trying to copy someone elses server, help ends here.
-
Is it possible to keep something streamed in client side for everyone all the time? - To prevent a train from streaming out and glitching-
-
I supplied everything you will need. function guihunter () local accountname = getAccountName (getPlayerAccount(client)) <- From GUI if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "vip" ) ) then price = 0 else price =25000 end end else
-
Any way to do this globally instead of manually going through and setting the handlings.
-
How would I globally decrease the grip of car tires to simulate traction loss in ice/snow?
-
https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup All the info you shall need. accountname = getAccountName (getPlayerAccount(//Player//)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "vip" ) ) then
-
Well if you stay near the train there is no issue, the only issue is when someone leaves the train it steams out client side "I'm assuming", when they go back to the train for them some carts are on different tracks but for the person who is at the train all the carts are on the same tracks.
-
Easiest way https://community.multitheftauto.com/in ... ls&id=3016
-
Any one have any ideas on how to fix this?
-
I have created a train script, but for other people on the server, the carts appear on different tracks. For the driver they appear on a single track. How would I fix this "If even possible" function startScript () Train = createVehicle ( 538, 2765.2949, 508.41016, 9.864749 ) Cart = createVehicle ( 570, 2765.2949, 538.41016, 9.864749 ) Cart2 = createVehicle ( 570, 2765.2949, 590.41016, 9.864749 ) Cart3 = createVehicle ( 590, 2765.2949, 620.41016, 9.864749 ) setTrainDirection(Train, true) setTrainDerailable(Train, false) setTrainDerailable(Cart, false) setTrainDerailable(Cart2, false) setTrainDerailable(Cart3, false) setTimer ( checkdistance, 100, 0) setTimer ( checkdistance2, 100, 0) setTimer ( checkdistance3, 100, 0) end function checkdistance () vehicle1x, vehicle1y, vehicle1z = getElementPosition ( Train ) vehicle2x, vehicle2y, vehicle2z = getElementPosition ( Cart ) local distance = getDistanceBetweenPoints2D ( vehicle1x, vehicle1y, vehicle2x, vehicle2y ) local speedT2 = getTrainSpeed ( Train ) if distance > 19 then setTrainSpeed(Cart, speedT2+0.01) else if distance < 19 then setTrainSpeed(Cart, speedT2-0.0105) else if distance < 18 then setTrainSpeed(Cart, speedT2-0.015) end end end end function checkdistance2 () vehiclegx, vehiclegy, vehiclegz = getElementPosition ( Cart2 ) local distancea = getDistanceBetweenPoints2D ( vehicle1x, vehicle1y, vehiclegx, vehiclegy ) local speedT2 = getTrainSpeed ( Train ) if distancea > 40 then setTrainSpeed(Cart2, speedT2+0.01) else if distancea < 40 then setTrainSpeed(Cart2, speedT2-0.0105) if distancea < 39 then setTrainSpeed(Cart2, speedT2-0.015) end end end end function checkdistance3 () vehiclefx, vehiclefy, vehiclefz = getElementPosition ( Cart3 ) local distancea = getDistanceBetweenPoints2D ( vehicle1x, vehicle1y, vehiclefx, vehiclefy ) local speedT2 = getTrainSpeed ( Train ) if distancea > 61 then setTrainSpeed(Cart3, speedT2+0.01) else if distancea < 61 then setTrainSpeed(Cart3, speedT2-0.0105) if distancea < 60 then setTrainSpeed(Cart3, speedT2-0.015) end end end end function traincruise (playersource) theSpeed = getTrainSpeed(Train) trainTrack = getTrainTrack(Train) local thespeeda = getTrainSpeed(Train) outputChatBox ( "Train set to cruise at :" ..thespeeda.." MS", playersource ) TrainTimer = setTimer ( setSpeed, 300, 0) end function setSpeed () setTrainSpeed (Train, theSpeed) end function cancelcruise () killTimer (TrainTimer) outputChatBox ( "Train cruise disabled.", playersource ) end addCommandHandler ( "traincstop", cancelcruise ) addCommandHandler ( "trainc", traincruise ) addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), startScript)
-
Ohh well in that case I belive you need to set up a FTP server. http://www.freesshd.com/?ctt=download
-
http://www.whatsmyip.org/
-
BottomZ == Put the number you want for bottom Z TopZ == Put number you want for top Z
-
For Z, do +1 example exports.saegwarpmanager:makeWarp ( { pos = { 372.35, -133.55, 1000.45+1 }, toPos = { 2104.77, -1806.47, 13.55+1 }, cInt = 5, cDim = 5, tInt = 0, tDim = 0 } ) ---2
-
What line creates the marker?
-
His marker is to low. He wants it higher up I'm assuming.
-
line 61-64 in client function webBrowserRender() local x, y = 110.7, 1024.15 <--- Set to location you want, very right of screen I'm assuming. dxDrawMaterialLine3D(x, y, TopZ, x, y, BottomZ,webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end
-
What line creates the marker?