Jump to content

BabY

Members
  • Posts

    138
  • Joined

  • Last visited

Everything posted by BabY

  1. BabY

    Help ?!

    I Want the Script to Make the Head Light color Change Randomly Every 800 MS and Please Post as you are Treating a Nab, and Make it Simple to Read, Because I'am not interisted in Reading Hard languages . Greetz, needless to be profiled .
  2. No Dude, I Want the Randomly Sky, Randomly Water, Randomly Vehiclle color, Randomly Vehicle headlightS color to Start When the Client hit the Marker 2 ... Your Script Made it Work in the Whole map, and The Markers isn't Working Greetz
  3. YaY, This Will obviously Help me, and varez won't Find any of my Silly Questions Over his Head Thank you
  4. LoL This what I Added, Made a New Problem ... function startclient () outputChatBox ( "= = = = = = = = = =" , 255 , 255 , 0 , true ) outputChatBox ( " " , 0 , 0 , 0 , true ) outputChatBox ( "#ff0000Happy #0000f0New #00ff002011 #ff00ffYear" , 0 , 0 , 0 , true ) outputChatBox ( " ",0,0,0,true) outputChatBox ( "= = = = = = = = = =" , 255 , 255 , 0 , true ) setSkyGradient ( 50 , 255 , 255 , 65 , 100 , 25 ) setWaterColor ( 50 , 60 , 100 ) setTime ( 1 , 0 ) setWaveHeight ( 0.5 ) setBlurLevel ( 5 ) setWeather ( 99 ) Marker1 = createMarker ( 4182.88671875, -2876.1853027344, 1062.5003662109, "corona", 7, 0, 0, 255, 200) Marker2 = createMarker ( 4703.38525390, -2239.5251464844, 1609.0306396484, "corona", 10, 255, 55, 55, 200) addEventHandler ( "onMarkerHit", Marker1, markerHit) addEventHandler ( "onMarkerHit", Marker2, markerHit) end function warp (player) if source == Marker1 then -- First Marker if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 4154.0571289063, -2392.6955566406, 1608.3810302734 ) setElementRotation (vehicle , 0,0,310.5) setVehicleFrozen ( vehicle , true ) setTimer( setVehicleFrozen, 300, 1, vehicle, false ) setWeather ( 99 ) setTime ( 00 , 0 ) setBlurLevel ( 0 ) end end if source == Marker2 then -- Second Marker if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 4169.7006835938, -2271.2592773438, 1111.0838623047 ) setElementRotation (vehicle , 0, 0, 0 ) setVehicleFrozen ( vehicle , true ) setTimer( setVehicleFrozen, 700, 1, vehicle, false ) setTime ( 00, 0 ) setBlurLevel (20 ) setGameSpeed ( 1.2 ) setWeather ( 99 ) function randomVehColors() --LOOOOOL ... FINALLY I MADE THIS SCRIPT !!!! xDDDD for i, car in ipairs( getElementsByType( "vehicle" ) ) do local color = {} color[1] = math.random(0,126) -- random from 0 to 126, because colors is from 0 to 126 color[2] = math.random(0,126) color[3] = math.random(0,126) color[4] = math.random(0,126) -- we take 4 random numbers because setVehicleColor have parameters with 4 colors setVehicleColor ( car, color[1], color[2], color[3], color[4] ) -- setting color to vehicle end end function loll () -- Mario World setSkyGradient (math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255)) setWaterColor (math.random (0,255), math.random (0,255), math.random (0,255)) end setTimer (loll, 800, 0) setTimer( randomVehColors, 800, 0 ) end function lights () for i,v in pairs (getElementsByType ("vehicle")) do setVehicleHeadLightColor (v, math.random(0,255), math.random(0,255), math.random(0,255)) end end function lightt() setTimer ( lights, 800, 0 ) end addEventHandler ("onResourceStart", root, lightt) end function markerHit(thePlayer,dimension) if (dimension and thePlayer==getLocalPlayer()) then local sound = playSound("files/warp.mp3") -- Sound Isn't Working end end end addEventHandler( "onClientResourceStart", resourceRoot, startclient, loll ) addEventHandler( "onClientMarkerHit", getRootElement(), warp ) Look at line 18 and 19 It Says bad Argument ...
  5. BabY

    Help ?!

    But ... What is 'setSkyGradientt' benfit here ? Or it's Just an Example ?
  6. huh ? I Don't Understand any of This You Mean I Cut 'do' and add it in the line 3 ? or ..........................................................
  7. BabY

    Help ?!

    Dude, Step by Step .. I Don't Understand any of what you Said ... Just Post what I Have to Put in the lua file, and You will Have my Best Greeting ^^ P.S = HI AIBOOOO !!!!
  8. function lights () for i,v in pairs (getElementsByType ("vehicle") [color=#ff0000]do[/color] setVehicleHeadLightColor (v, math.random(0,255), math.random(0,255), math.random(0,255)) end end function lightt() setTimer ( lights, 800, 0 ) end addEventHandler ("onResourceStart", root, lightt) Theres a Problem in the Command 'do'
  9. BabY

    Help ?!

    Look at the Marker2 I Made the Game speed fast and the Sky Change randomly every 700 ms and The Water color too ... and The Car Colors ... And I Want to Make the Car headlights change too ... so i will complete the mario world marker But, I Can't Get the HeadLightsColors ... And I Searched inda Wiki, I Couldn't get my useful ... so I'am asking for Help
  10. I Meant This Syntax : setObjectCollisoinsEnabled ... Try to Make an Object without Collisions and Walk into it with Your CAM Hack Mod and Tell us If the Resource Crashed or Not .
  11. BabY

    Help ?!

    Sorry, I Forgot to Post "SOVED" LoLz ... I Searched in the Wiki, and Found Exactly what I Want Just, Copy Paste But I Didn't Found any Solution to Make the HeadLightColor ... Like the Sky Can you Help me ? and This will be the Last Question and I Will Request to Lock the Topic
  12. Niiiiice I Thought in This bug too ... But ... I Think There will be a Problem ? Try to Make a Collistion Object ... and Pass through it ... Greetz, MI550
  13. BabY

    Help ?!

    Well, Forget the Sound ... I Had a New Problem ... I Wanted to Make the Sky be Like a Mario game and Change the Game Speed ... But I Failed ... Look at my ******************************************** function startclient () outputChatBox ("= = = = = = = = = =", 255, 255, 0, true) outputChatBox (" ",0 ,0 ,0 ,true) outputChatBox ("#ff0000Happy #0000f0New #00ff002011 #ff00ffYear",0, 0, 0, true) outputChatBox (" ",0,0,0,true) outputChatBox ("= = = = = = = = = =", 255, 255, 0, true) setSkyGradient ( 50 , 255 , 255 , 65 , 100 , 25 ) setWaterColor (50, 60, 100) setTime (00, 0) setWaveHeight ( 0.5 ) setBlurLevel ( 10 ) Marker1 = createMarker ( 4182.88671875, -2876.1853027344, 1062.5003662109, "corona", 7, 0, 0, 255, 200) Marker2 = createMarker ( 4703.38525390, -2239.5251464844, 1609.0306396484, "corona", 15, 255, 55, 55, 200) addEventHandler( "onMarkerHit", Marker1, markerHit) addEventHandler( "onMarkerHit", Marker2, markerHit) end function warp (player) if source == Marker1 then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 4154.0571289063, -2392.6955566406, 1608.3810302734 ) setElementRotation (vehicle , 0,0,310.5) setVehicleFrozen ( vehicle , true ) setTimer( setVehicleFrozen, 300, 1, vehicle, false ) setWeather ( 0 ) setTime ( 00, 0) setBlurLevel ( 0 ) end end if source == Marker2 then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 4169.7006835938, -2271.2592773438, 1111.0838623047 ) setElementRotation (vehicle , 0, 0, 0 ) setVehicleFrozen ( vehicle , true ) setTimer( setVehicleFrozen, 700, 1, vehicle, false ) setTime ( 00, 0 ) setBlurLevel ( 20 ) setGameSpeed ( 1.5 ) [color=#FF0000] setTimer (loll, 300, 0)[/color] setSkyGradient (math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255)) end end end function markerHit(thePlayer,dimension) if (dimension and thePlayer==getLocalPlayer()) then local sound = playSound("files/warp.mp3") end end addEventHandler( "onClientResourceStart", resourceRoot, startclient, loll ) addEventHandler( "onClientMarkerHit", getRootElement(), warp ) I Want, When The Player Enter the Marker2 Make the Randomly Sky and Other Stuff ... But I Enter the Marker it don't make any thin and i have tried to move the setTimer in defirrent places ... but it's not working ...
  14. I Understand Him, I Think he is Arabic like me, and I Know a lot About this Stupid Language they Talk with As Castillo Said : Go to the Wiki and Make the .lua File, and Input the Scripts and Then, Go to your Meta.xml Like This : <meta> <info gamemodes="race" type="map" name="[DM]Happy New 2011 Year" author="MI550" version="2011" description="New Map, For the New Year ;)" /> <map src="race-2011.map" dimension="0" /> <settings> <setting name="#skins" value='[ "cj" ]' /> <setting name="#maxplayers" value="[ 32 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> <setting name="#ghostmode" value='[ "false" ]' /> <setting name="#time" value="12:0" /> <setting name="#vehicleweapons" value='[ "false" ]' /> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#weather" value="[ 9 ]" /> <setting name="#gravity" value="[ 0 ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#respawntime" value="[ 5 ]" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#duration" value="[ 1800 ]" /> <setting name="#respawn" value='[ "timelimit" ]' /> </settings> </meta> and add this Line : <script src="Your Script File Name.lua" type="client" /> So the Meta.xml Will be : <meta> [color=#FF0000]<script src="Your Script File Name.lua" type="client" />[/color] <info gamemodes="race" type="map" name="[DM]Happy New 2011 Year" author="MI550" version="2011" description="New Map, For the New Year ;)" /> <map src="race-2011.map" dimension="0" /> <settings> <setting name="#skins" value='[ "cj" ]' /> <setting name="#maxplayers" value="[ 32 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> <setting name="#ghostmode" value='[ "false" ]' /> <setting name="#time" value="12:0" /> <setting name="#vehicleweapons" value='[ "false" ]' /> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#weather" value="[ 9 ]" /> <setting name="#gravity" value="[ 0 ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#respawntime" value="[ 5 ]" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#duration" value="[ 1800 ]" /> <setting name="#respawn" value='[ "timelimit" ]' /> </settings> </meta>
  15. BabY

    Help ?!

    Bu' ... I Have another Problem When I Enter the Marker, and Every thing is Okay, I Don't Hear the Sound ... I Want to Hear it It will make the Markers COOL ;D
  16. BabY

    Multi Objects

    okaaaaaay ... What about Making a Program, Than in-game ... It won't be Laggy ... We Just Enter the Name of the Objects, Or It's shown as Chack Boxes, and Then Select the Method (rotate, position) Then We Enter the Value, and Press Generate
  17. BabY

    Help ?!

    Thanks volk-rus WORKING !!!
  18. BabY

    Help ?!

    Hey All ... I Think a Lot Posted like me, asking about " How to make a Marker " But ... I Made the Marker and When I Enter it, It Dosen't Teleport, I Need it to Work, in a DM Map (Race) I Saw Some one, Made like me, But It was with a Panel or Some thing ... So I Think my Situaion are Different ... Debug Script Result : Hmmm ... Line 5 ... at the "addEvetHandler" ... My Script : function startclient () setSkyGradient( 50 , 255 , 255 , 65 , 100 , 25 ) Marker1 = createMarker ( 4183.0122070313, -2877.7978515625, 1067.9123535156, "arrow", 5, 0, 2, 255, 255) addEventHandler( "onClientMarkerHit", Marker1, markerHit) end function warp (player) if source == Marker1 then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 4154.0571289063, -2392.6955566406, 1610.1810302734 ) setTimer( setVehicleFrozen, 1000, 1, vehicle, false ) end end function markerHit(thePlayer,dimension) if (dimension and thePlayer==getLocalPlayer()) then local sound = playSound("files/warp.mp3") end end end addEventHandler( "onClientResourceStart", resourceRoot, startclient ) addEventHandler( "onClientMarkerHit", getRootElement(), warp ) so ... Whats Wronge ... Scripting is rly Strange ... The Debug Scripter Tell me the Problem, and Leave me Burn
  19. BabY

    Multi Objects

    I Think It was me I Realy Want this Function to be in the New MTA Version ...
  20. BabY

    Multi Objects

    Hello All , While I Was Mapping ... I Wanted to Attemp 1 or more Effect, on 2+ objects ... How About Making "ctrl" Key to Select Many Objects? and Add Differect Effect, Instead of Selecting Every Objects ... and Edit it Specially Race DM Maps ... I Wanted to Move 10 Objects, and Move it to Another Place, EVERY OBJECT !!! This was Boring ... so I Hope you Can Understand my Suggestion ... Greetz, MI550
  21. voice chat will be avalible in the next version of mta (1.1) ...
  22. lol idk why i feel 1.1 will be unbeliveable ... AND ROCKS !!!!
  23. lol go to any server have the top time, and take the resource (EPG, IG) BUT!, If you Did that ... You will be Called a Stealer, and Betrayer and your Clan will Hate you, and You will Lose your Respectness in the Server
×
×
  • Create New...