Jump to content

Dark Dragon

Members
  • Posts

    1,619
  • Joined

  • Last visited

Everything posted by Dark Dragon

  1. please, there is no need for a second thread about this. please use the one you've already posted. thank you
  2. Dark Dragon

    race maps

    please treat other forums members with respect. you might have noticed that it's not always easy for us to understand you.
  3. race has many custom events which are triggered during gameplay https://wiki.multitheftauto.com/wiki/Resource:Race you would probably need onPlayerFinish. but don't forget to add the event before adding an event handler. to store the information you should use mta's sql functions https://wiki.multitheftauto.com/wiki/Ser ... _functions
  4. can you explain "a problem" a bit further?
  5. i think this will give a similar effect: -- client addEventHandler("onClientPreRender",getRootElement(), function() setCameraTarget(getLocalPlayer()) end )
  6. it should be #EBDDB2 if i remember correctly
  7. don't be so cruel this however doesn't show your local ip though. unfortunately i can't test it due to problems with .net framework. but i'm sure it does a good job.
  8. try the map editor. once started press f and search for an icon named "locations" there you'll find a list of all interiors and best of all you can warp there with just a single click.
  9. well then you might need to explain a bit further what your wanting is
  10. uhm, if i get your question correctly the answer is yes, you can use the map editor which comes with mta or use createObject in a script file.
  11. you can use a timer (setTimer) when a player dies (onPlayerWasted) and then simply spawn them (spawnPlayer)
  12. your function has no "end" and addEventHandler misses a ")". the rest seems fine red,green,blue,alpha=255,56,192,192 topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue=255,56,192,255,56,192 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) setSkyGradient(topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue) end -- this is the end of the function you start 3 lines above ) -- this is the ")" of addEventHandler 4 lines above
  13. convenience. onClientPlayerJoin is basically just there so you don't need to trigger an event yourself when you need to get that client side. it's just there so you can use it in client side scripts as well.
  14. i think you need to create the peds server side in order to make it work correctly
  15. you can either select the element and press f3 or double click it, it will bring up a gui with a lot of useful stuff
  16. the default bind is the right mouse button, but you can reassign it in settings -> binds if you like to (scroll down to find it)
  17. Dark Dragon

    Water Color

    that's simply not how the meta file works just like with the map file you need to point at what you want to include. just calling a file "client.lua" doesn't make it a client side loaded file. you need to tell mta that there is a file it should load and you also need to tell that it's a client side file like this: <?xml version="1.0" encoding="utf-16"?> <meta> <info type="map" gamemodes="race" name="Promo" author="-" description="Have Fun" /> <script src="client.lua" type="client" /> <map src="Promo.map" /> <settings> <setting name="#time" value="0:0" /> <setting name="#respawn" value="timelimit" /> </settings> </meta> the rest is fine, the map doesn't need to tell that it's a race map. that's what the meta file does. yes it's a bit confusing, basically it's just a left over thing that was needed back when there was no meta.xml.
  18. whenever someone dies (onPlayerWasted) count all players which have their "state" element data set to "alive" if its only 1 player, trigger a client event which plays the sound. you might even try to use onClientPlayerWasted so you could keep it all client side.
  19. not to mention that you can use almost any weapon, not just uzis and the smg to driveby. try minigun driveby
  20. you know that you have to add your scripting files to the meta.xml don't you? by the way you should start a new resource, adding this to race wouldn't be too good for the organization and yes my code works, yours should too
  21. as suggested by jumba 6 posts above this one you need to trigger a client event after warping a ped into a vehicle server side, then set the control state in the client side triggered function https://wiki.multitheftauto.com/wiki/Event_system
×
×
  • Create New...