Jump to content

Gamesnert

MTA Contributors
  • Posts

    2,035
  • Joined

  • Last visited

Everything posted by Gamesnert

  1. too bad i really wanted to try change the sa hud to the one of IV for my server Just hide everything and make it GUI. Well, it indeed is quite a shame though... Especially due to the clock "hey-I'm-asked-to-hide-but-I-don't-wanna-hide" bug...
  2. Hmmm... Wasn't offedit client-side too? =/ Anyway, yes I guess. I have a bad experience with offedit since I hate typing everything over and over again... Just to change it coords... This is MTA! Do it by mouse!!!!
  3. Gamesnert

    Script help

    Oh, I just like using MTA resources. And seeing the model directly.
  4. I ALWAYS want official things! Nah, I don't care. As long as it would work by now. everyone wants official thing! i just want a professional one, the good ones are just client side Yup, everyone's worst nightmare in the world of map editing: Client-side objects! D: It's cool to team up with someone else while editing the map! That's one of the major factors I chose for MEdit. Also, I liked the mouse control! Awwwww! Someone fix things fast so this is the most pwning editor ever!
  5. I ALWAYS want official things! Nah, I don't care. As long as it would work by now.
  6. Or you're too inactive! ^^ Just kidding. Anyway, let's get back on-topic, shall we? sure, hmm what was the topic anyway? Look at the title, above your own post... Anyway, where is Mabako? I would really like to see a new release that's less buggy!
  7. Could u please create the code for me??? u will get admin privileges on my server(i cant pay u) I dont think you can add new maps non existing in game to your server, youll have to wait for dp3 mate Create it high in the sky!
  8. Or you're too inactive! ^^ Just kidding. Anyway, let's get back on-topic, shall we?
  9. calm down dude i was editing my post your too quick Or you're too slow! ^^
  10. Nah it isn't difficult, I just don't like hacking! hacking? CamHACK. EDIT: No we're not hacking! Hacking !=modding. Or in Lua, hacking ~=modding.
  11. Gamesnert

    Script help

    Search for a resource called "object browser" or "objbrowser". You might find it usefull, but there are 2 disadvantages: 1. It's divided in categories, but you can't collapse some of the categories you don't need. 2. Sooooooooo sloooooooow load time... =/ But well, it's one of the best resources to find out some ID's.
  12. Gamesnert

    my lan server

    Ok. setElementData is basically a kind of variable for a specific element. Example on setElementData: This example will check if a gate is open, and closes it if so. And opens otherwise. function gateToggle() local isGateOpened=getElementData(gate,"opened") or false --Or false is there to not give an error if it fails. I always use that in these cases if isGateOpened==false then moveObject(gate,nX,nY,nZ) setElementData(gate,"opened",true) elseif isGateOpened==true then --Note! elseif is NOT a typo! moveObject(gate,oX,oY,oZ) setElementData(gate,"opened",false) end end addCommandHandler("gate",gateToggle) Note that this is an UNTESTED EXAMPLE code. Also, could you post the script you currently use for the model change here? There might be a problem in it. Also, if you're in-game and logged in as an admin, type "/debugscript 3" to check if there are any errors in the client-side script.
  13. Gamesnert

    my lan server

    It's very easy to see why ALL pickups have a blip, getElementType(...)=="pickup" looks if it's a pickup. No matter what kind of. I would suggest giving the houses some element data, by using setElementData. And in the blip code, use getElementData to retrieve it. On the engine code side, did you add the files in your meta.xml? Never forget that if you want to do custom models, you need to add to the meta. Otherwise it doesn't work. Hope it helps.
  14. No, he means in the entire map. So if he looks at direction 123 for example, he wants to be able to see if there are any players near his sight. No matter the range. As you can see in the example, he wants to see over an extremely long range.
  15. Gamesnert

    Script help

    Ok, first: You need to trigger consoleGivePlayerMoney once first. Second: Is theCar a function in your script? Third: If it would loop consoleGivePlayerMoney all the time, and setTimer repeat amount is set to 0, you would get about 100 repeating timers after 100 seconds... =/ Fourth: You're not giving a parameter consoleGivePlayerMoney needs. Try changing it to: setTimer ( consoleGivePlayerMoney, 1000, 1, sourcePlayer )
  16. I'm a bit busy unfortunately. Spore time, you know. I might help here, but less often then normally.
  17. maybe undo what you did with the resource? First, wtf to what happened. Never heard of that one before. Second, scarface... lol! The files are gone, not just hidden or whatever. Not just moved. (well, I guess not...)
  18. yeah if you mean started as running yes they are, if not explain yourself. Yeah was mainly if they were running... In mtaserver.conf, are those resources set to "protected=1"? If so, try disabling them. (I have it on standard, and only resourcebrowser and resourcemanager are protected. I don't know what happens if I put webmap&admin on protected =/) EDIT: No, doesn't seem to be the problem... Ehm...
  19. A drift server, huh? What kinds of scripts do you need for that? And for the ones not knowing what that is, can you explain? If you can answer the last 2 questions, then I might be able to help, but also alot of people on this forum will be able to help.
  20. That was Kapil Instant House Construction, right? That seemed good! But, just like you, I didn't test it.
  21. Hmmm....... is it hard? Can be, doesn't have to be. Depends on your ways of scripting. It's just how you imagine your script in front of you, how difficult it'll be. Know that with mathematics? You calculate something a hard way, while someone else just calculates something almost immediately? Depends on your way of calculating. Same here. But to be honest: Yes, you need to know a thing or two about scripting. But you can think a while to think how you're going to do it. Do it as far as your knowledge goes, use the wiki and the forums for the rest. (NOTE: Wiki first! )
  22. dftVehicle = { [578]=true } function MarkerHit ( player, vehicle, seat, jacked ) local OccVehicle = getPlayerOccupiedVehicle ( player ) if ( OccVehicle ) then if ( dftVehicle[getVehicleID(OccVehicle)] ) and source == Marker then outputChatBox ( "Checked!" ) end end end addEventHandler ( "onMarkerHit", getRootElement (), MarkerHit ) Fixed I guess
  23. Yes, that's needed. I once had a few peds walking on my server (don't ask me why =/) and they had the right voices. Peds should be almost perfect if they would have the right voices.
  24. You need to do triggerServerEvent and then something like... function letsDisableThisForAllPlayers() outputChatBox("Warning: " .. getClientName(source) .. " pushed the big button!") triggerClientEvent(getRootElement(),"disableTheBigButton",source) end addEvent("onBigButtonPressed",true) addEventHandler("onBigButtonPressed",getRootElement(),letsDisableThisForAllPlayers) Only parts you need to add: --triggerServerEvent when the button is pressed. --addEvent and addEventHandler in client-side, for "onBigButtonPressed" to work. That should work. Not tested though since I'm at school... -.- EDIT: Line 2 fixed for as far as I can see... =/
×
×
  • Create New...