BlueYoshi97 Posted January 26, 2011 Share Posted January 26, 2011 Speedboosting at will.You are able to speedboost at will by pressing the "X" button. After you've pressed it, there will be a cooldown period of 8 seconds during which you will not be able to speedboost again.It comes with a nice text that lets you know whether it's cooling down or it's usable.Installation for your map:Go to: http://www.xoti.net/uploads/boost_a749.luaSelect and copy everything, paste it in a boost.lua script. Put the boost.lua script in the map archive. Open meta.xml and right before the </meta> tag, add this line:<script src="boost.lua" type="client" />have funAwesome-O. Did you make that? Quote Link to comment
BinSlayer Posted January 26, 2011 Author Share Posted January 26, 2011 ermm yeah o.O Quote Link to comment
weet Posted February 3, 2011 Share Posted February 3, 2011 Hey guysI need serious help, i don't know the bases of scripting, and i want a script, that doesn't exist (i guess)It's possible to do damage to a plane if its higher than "x"? I was thinking like in a mission of GTA SA, that if you're higher than a certain hight you will lose, something like that.Can someone help me, pleasee Quote Link to comment
Ruff Posted February 3, 2011 Share Posted February 3, 2011 It's possible to do damage to a plane if its higher than "x"? I was thinking like in a mission of GTA SA, that if you're higher than a certain hight you will lose, something like that.Most certainly is possible. Unfortunately I don't know how to code either.But it would probably just be checking the plane's Z coordinate and then if it is, executing a kill command. Quote Link to comment
BinSlayer Posted February 3, 2011 Author Share Posted February 3, 2011 Clientscript:height = 50 -- CHANGE THIS NUMBER TO WHATEVER HEIGHT U WANTrespawnTime = 10 -- CHANGE THIS TO THE RESPAWN TIME OF YOUR MAP (IN SECONDS)dead = falsefunction checkClient() if dead == false then theVehicle = getPedOccupiedVehicle(getLocalPlayer()) if theVehicle then if getVehicleType(theVehicle) == "Plane" then x,y,z = getElementPosition(theVehicle) if z > height then dead = true setTimer(function() dead = false end , respawnTime*1000, 1) triggerServerEvent("onPlayerHighZ", getLocalPlayer()) killTimer(mytimer) end end end endendsetTimer(checkClient, 200, 0)Save everything as client.lua , go to meta.xml and add this line <script src="client.lua" type="client" />Serverside:function killHim() killPed(source) outputChatBox("Not allowed to go that high.", source, 255, 255, 255)endaddEvent("onPlayerHighZ", true)addEventHandler("onPlayerHighZ", getRootElement(), killHim) Save everything as server.lua then go to meta.xml and add this line:<script src="server.lua" />Note: Read the codes and change the required stuff that I explained above. (Respawntime and height)Note2: I didn't test the script, but it should work. Because I'm using a similar script for Go Fast Til you Die map. Quote Link to comment
BinSlayer Posted February 25, 2011 Author Share Posted February 25, 2011 this is an idea i had for emanuel's next bike map; we all know ppl hate tapping in bike maps xDsetTimer(toggleControl,1000,0,"steer_forward", false)1-line script that fixes that xD run it client-side for your bike map Quote Link to comment
CsenaHUN Posted February 26, 2011 Share Posted February 26, 2011 Just a short script: Water and Sky colour changer-------------------Water Colours-------------------wr = 112 --Redwg = 219 --Greenwb = 147 --Bluewa = 200 --Alpha (visibility)-----------------Sky Colours-----------------str = 0 --skytopRedstg = 0 --skytopGreenstb = 0 --skytopBluesbr = 0 --skybottomRedsbg = 0 --skybottomGreensbb = 0 --skybottomBluefunction thaResourceStarting( ) setWaterColor ( wr, wg, wb, wa ) --water setSkyGradient( str, stg, stb, sbr, sbg, sbb ) --skyendaddEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting)<script src="watersky.lua" type="client" />You can find colour codes here: link Quote Link to comment
Ruff Posted February 26, 2011 Share Posted February 26, 2011 You can find colour codes here: linkOr use this page and take note that:R = RedG = GreenB = Blue Quote Link to comment
CRYOSPHERE Posted February 26, 2011 Share Posted February 26, 2011 this is an idea i had for emanuel's next bike map; we all know ppl hate tapping in bike maps xDsetTimer(toggleControl,1000,0,"steer_forward", false)1-line script that fixes that xD run it client-side for your bike map That's nice. Quote Link to comment
ThisBadGuy Posted March 1, 2011 Share Posted March 1, 2011 (edited) From "Revolution is coming 2.0"local rootElement = getRootElement()local screenWidth, screenHeight = guiGetScreenSize()local nexp = 100000 -- Number of explosionslocal nres = 100000 -- Number of vehicles respawns----- Messages -----function message () local missiontextone = "Reach the base to change your vehicle," local missiontexttwo = "then destroy the President's aircraft." dxDrawRectangle ( screenWidth/3.2, screenHeight - 90, screenWidth/2.7, 80, tocolor ( 0, 0, 0, 150 ) ) -- Create black background Rectangle dxDrawText ( missiontextone, 0, 0, screenWidth, screenHeight - 50, tocolor ( 255, 255, 255, 255 ), 1, "pricedown", "center", "bottom", false, false, false ) dxDrawText ( missiontexttwo, 0, 0, screenWidth, screenHeight - 25, tocolor ( 255, 255, 255, 255 ), 1, "pricedown", "center", "bottom", false, false, false ) -- Create text setTimer (remove, 10000, 1) -- Text showing for 10 secendfunction remove () removeEventHandler("onClientRender", rootElement, message)endaddEventHandler("onClientRender", rootElement, message)----- Explosions -----function explosions () local rnd = 20 -- Explosion range local pX, pY, pZ = getElementPosition ( getLocalPlayer () ) createExplosion ( math.random(pX - rnd, pX + rnd), math.random(pY - rnd, pY + rnd), pZ, 3, true, -1.0, true)endsetTimer (explosions, 20000, nexp) -- Explosions interval 10 seconds----- Vehicles -----function createvehicles () local Tank = createVehicle ( 432, 2726.1, 2115.2, 7.3, 0, 0, 180 ) setElementVelocity(Tank, 0, -1, 0)endsetTimer (createvehicles, 10000, nres) -- Vehicles respawns interval 10 seconds Edited March 2, 2011 by ThisBadGuy Quote Link to comment
BinSlayer Posted March 1, 2011 Author Share Posted March 1, 2011 Why not explain what the script does? Quote Link to comment
ThisBadGuy Posted March 1, 2011 Share Posted March 1, 2011 (edited) Why not explain what the script does?1) Message in black rectangle2) Random explosions near the player's vehicle (like in war) Edited March 2, 2011 by ThisBadGuy Quote Link to comment
BabaJaga Posted April 7, 2011 Share Posted April 7, 2011 hi guys, i need push up player script, can you help me? Quote Link to comment
LNMM Posted October 26, 2015 Share Posted October 26, 2015 As I can create a race with NTS mode?Thanks and sorry for the bad English. Quote Link to comment
AbueloEbrio Posted October 26, 2015 Share Posted October 26, 2015 read this http://mrgreengaming.com/forums/topic/14734-mapping-rules-for-mta/ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.