Jump to content

BinSlayer1

Members
  • Posts

    491
  • Joined

  • Last visited

Everything posted by BinSlayer1

  1. @Kenix: It's pretty wrong to use clientside functions to alter the money While it's okay to getPlayerMoney clientside, it's not a good idea to givePlayerMoney
  2. This is most true. Other than map starts, honking isn't used too much or at all Just disable the control when the map is starting clientside... 'onClientMapStarting' -> toggleControl('horn', false) That's the whole script. No need to re-enable honking once the race has started because the race gamemode is smart enough to toggleAllControls anyway
  3. Money doesn't change out of the blue.. Money only changes when you tell the script to use setPlayerMoney, givePlayerMoney or takePlayerMoney Everytime you use either of those functions, launch your own custom event "onMoneyChange", eventually passing the current money or whatever you like as parameters. use triggerEvent() https://wiki.multitheftauto.com/wiki/TriggerEvent E.g: In case you use givePlayerMoney(player, 300), do this afterwards: triggerEvent ('onMoneyChange', player, getPlayerMoney(player)) PS: You can scrap passing getPlayerMoney, I'm just showing an example
  4. Lol, I gotta hand it to you there.. Pretty smart Deleting your own post and reposting avoids double-posting and bumps the topic at the same time. Seriously that's more or less genius Sorry for the offtopic
  5. add this after the first line player = player or source Also @ getPlayerAccount use 'player' not 'source'
  6. Stolen? Not once did he mention that he had made the script himself.. Maybe the original resource wasn't suiting his needs so he wants to alter it and you're like "oh no thief!"
  7. Yes, this function is most likely attached to onClientRender due to the nature of dxDrawText This function looks like it would draw (on every frame) the number of players that are spectating (perhaps spectating you?) and the respective shadow for it (so the text looks nicer). It's also drawing the FPS and money of the local player (you) and again the shadows Perhaps you should check the wiki: https://wiki.multitheftauto.com/ They got a search function over there you can type in "onClientRender", "dxDrawText", "getElementData" and "getPlayerMoney" Note that everything you posted here is executed CLIENT-SIDE.
  8. Way to go, insulting someone who's been helping people since the beginning of time He's right actually, you can't cancel/remove outputChatBox's because while this event will gather it, it doesn't support cancellation: https://wiki.multitheftauto.com/wiki/OnChatMessage Also you can't use onPlayerChat because chatting has nothing to do with outputChatBox
  9. if you use CapY's code, then the objects disappear from the default dimension. To avoid this, double everything first by iterating through all the objects in a map and recreating them and change the dimension alongside This way the original objects stay in the default dimension and their respective copies are sent to other dimension
  10. BinSlayer1

    San Andreas

    Actually you will have to worry everytime you reinstall the game because version 3.0 (steam version afaik) is not supported and you will still need the 1.0 no-cd
  11. BinSlayer1

    smoke

    no no no, I edited my post. I meant to turn off the forward driving, not the reverse! Forward is what creates the smoke, since the car is frozen and it tries to accelerate
  12. assuming it's clientside.. 'player' is not defined when the resource starts, you can only use 'localPlayer', BUT there is no reason why you would pass the localPlayer with a timer, since it exists everywhere in the script and can be used at all times
  13. BinSlayer1

    smoke

    Simply turn off using toggleControl() the forward driving
  14. Are you insane? How am I gonna help you milk a cow? That's plain stupid to ask in a Scripting forum of a GTA mod I gave you the resource for creating "homes" just like you asked And I don't know what "lolmode" is Is it a command with an output to the chatbox or what?
  15. 1. - 2. and http://www.ehow.com/how_7437_milk-cow.html3. https://community.multitheftauto.com/index.php?p= ... ils&id=727 Looks like a troll topic anyway..
  16. Yes Remember to add the database!
  17. The script I posted. Because I copied FatalTerror's script which works fine, but I changed 1 line which makes it even better. By better I mean that it will return still return 'US' in the chatbox in case you didn't modify the database of country names to add US as United States PS: You do understand that the script requires an enormous database, don't you? You will have to add the countries manually
  18. Why would you use unpack? Unpack will fail because countryNames[country] is not a table. edit: also if flag becomes a full name then it fails @ outputChatBox edit2: oh and setElementData is most likely used there to set the dxscoreboard's column.. So why would you set the column to the full name of the country? The initials will do just fine addEventHandler("onPlayerJoin", getRootElement(), function() local country = exports['admin']:getPlayerCountry(source) if country then setElementData(source, "Country", country) local thecountry = countryNames[country] or country --this is the only addition to FatalTerror's script. outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 Joined The Server From #FF8900[' .. tostring(thecountry) .. '] ', getRootElement(), 2, 255, 2, true) end end) @TopicStarter you should use FatalTerror's script with that single line I edited. Check it above in my post :')
  19. 1.3 and 1.2 share the same resources So you must have done something wrong or you've edited the gamemode http://code.google.com/p/mtasa-resources/downloads/list
  20. scuzati de offtopic dar nu`mi vine sa cred ca sunt si femei scripteritze pe aici ) PS: Mi-ar placea sa vad un server de romani fara pic de engleza. Spor la treaba lume
  21. How come? I only tested it the other day in MTA 1.3 nightly Anyway.. There is no need for any collision-toggling functions as 'race' has already customized then very nicely and friendly so all you have to do is set element data to the player.. Check the wiki link (about race) I posted a few posts back edit: this basic line will toggle ghostmode on :') setElementData( thePlayer, "overrideCollide.uniqueblah", 0, false )
  22. are you sure you're looking for a "function" to do that? I think you want to use race's built-in ghostmode which is triggered by the /ghostmode command Also, even if you don't want the command.. There's also a scripting way to toggle ghostmode for specific player elements. Go to the bottom of this page: https://wiki.multitheftauto.com/wiki/RU/Resource:Race
  23. It's nil because there's no set rate for it yet (you havent rated the map yet) you must add an extra IF to check if .average returned something different than nil Edit: You must also make sure getMapRating is exported in 'mapratings'
  24. the problem is that when the timer is finished and the 'player gets paid', there is no check that he is actually in a vehicle, while he could have gotten in one, then the setTimer would be triggered within 60 secs, but the player could have also gotten out of the vehicle while nothing stops him from doing so
×
×
  • Create New...