Jump to content

Quest

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Quest

  1. Your right I think it can work both ways. (puts foot in mouth) I forgot that you can leave it blank. I've had a few key binding issues, so I usually do that.
  2. No he forgot to mention the key and the state of the key in the function declaration. function keyboard ( source, key, state ) bindKey ( source, "c", "down", createRamp ) end
  3. Make sure the script is server side. Also: function keyboard ( source, key, state ) bindKey ( source, "c", "down", createRamp ) end
  4. I was curious if anyone has any idea of how to create a first person camera? I was thinking it might be cool to make it so passengers in a car go to first person view, a lot like the time when you are in the car shooting the cops and big smoke is driving. Anyone have any idea how to do this or if it is possible?
  5. I have noticed this on my script and server. I think it MIGHT be a MTA bug. Since I haven't touched vehicles at all.
  6. Actually he had them in there, I don't use them. But math wise it shouldn't have any effect on it, I don't think. But then again, they could screw it up.
  7. You need to label each one of the moving parts. I see that you are creating new objects instead of moving them. Something like this I think: function Load( name ) if name ~= getThisResource() then return else gate1 = createObject ( 986, 96.790939, 1921.111084, 18.860405, [ 1.570796, 0.000000, 0.000000 ] ) end end function gateOneOpen ( thePlayer ) moveObject ( gate1, 3000, 96.940948, 1925.990845, 18.860405, [ 1.570796, 0.000000, 0.000000 ] ) outputChatBox ( "Gate one opening", thePlayer, 255, 0, 0 ) end function gateOneClose ( thePlayer ) moveObject ( gate1, 3000, 96.940948, 1925.990845, 18.860405, [ 1.570796, 0.000000, 0.000000 ] ) outputChatBox ( "Gate one closing", thePlayer, 255, 0, 0 ) end addEventHandler ( "onResourceStart", getRootElement(), Load) addCommandHandler ( "gateoneopen", gateOneOpen ) addCommandHandler ( "gateoneclose", gateOneClose ) I haven't tested, but by the looks of it it should work.
  8. When you do createObject do this gate1 = createObject and then gate2 = createObject . That is how you would label them, then do: moveObject ( gate1, 3000, x, y, z ). And do the same for gate2 for the position you want the object to move. Hope that helps
  9. I think I saw that post was locked. Maybe theres a new one.
  10. Quest

    GUI stuff

    I am curious where I could find some basic and easy to understand info about GUI. For some reason I find it extremely complex, I was hoping someone is aware of a tutorial (I am not aware of one atm). And all the gamemode ones I see are very complex. I looked at mabakos PaynSpray script, and wowza awesome job, but I was totally confused. I look at the wiki but I don't know where to start. Any suggestions, or gamemodes with very basic GUI, with basic button functions etc that I can look at? I also tried the admin panel, that is very thick also, good job Toady. Thanks in Advance!
  11. Trial and Error, just try a 25 person server. If that works fine bump it up and keep doing that til you feel its too much.
  12. It's built into the admin resource. Basically they are either cheaters who are trying to use False serials, or they are someone who made a mistake modifying their serial for any number of reasons. Basically, they need a valid serial key to play MTA.
  13. Quest

    Commands

    Post your actual command here. You must have a { somewhere or something in front of it that doesn't make sense. The code Jumba posted will work fine. Do you mind posting it?
  14. Quest

    Commands

    Yeah, I prefer just to use folders with mine. Dunno why it works well.
  15. Quest

    Commands

    LUA doesnt require to use { } only in certain situations. You are thinking of pawno.
  16. I don't have the code, but all you need to do is copy the source code to notepad and name it: Name.lua And POOF got a lua format.
  17. I was wondering if anyone knows of a way to be able to kick players / ban etc through the IRC. I wasnt sure if there would a way at all. I am not very good with IRC, I can script fine. I just lack the knowledge of how I could check for admin on the IRC.
  18. Quest

    Gamespeed

    I didn't even think of that. Should that slow it down to them? I am going to check that out now thats for the idea.
  19. Quest

    Gamespeed

    I am curious, tho I doubt it is possible, does anyone know if it is possible to have Gamespeeds vary per player? Let's say someone wants a slowmo themseleves. I know I can do a command that effects the entire server, that gets annoying. I was hoping someone might an idea how to do it for individual players or a set of players. I doubt this is possible atm, just hoping. O yeah, is there the adrenaline pill in MTA? I have yet to see it, because I could use this instead. Thanks for reading.
  20. Quest

    [REQ] NPCs

    I agree that the third party bots don't have to be crap. I just feel that they will function much better as a native. Anyway, I have seen bots in several games that are third party. But the bots took places of Player Characters, and I am not a fan of losing player slots.
  21. Quest

    [REQ] NPCs

    I think this will probably have to be done by a third party program. Or I would prefer, the MTA team design it. These guys know the engine inside and out and are very talented. Not to mention, I am not a person to use third party programs to get the bots working. I just don't think it would be too easy to use LUA, you would probably need to make a program have the bot 'connect' to the server and treat it like an actual player.
  22. Quest

    Custom Vehicles

    I have noticed when I add custom vehciles to load on gamemode start they do not fully work (textures do not load properly). So in order to get around this, I have it set to a command, ex: /car1 . That seems to work most of the time, sometimes it requires using the command twice to overlay the texture. This is just one nuisance I have seen. Another is that after a while with a few, 3 or more custom cars for me, the client will randomly 'timeout' / crash. It happens to some more then others. And it seems usually to be random, but custom cars are always involved. Anyone else notice this, or am I screwing up? Haha, thanks!
  23. The best way to learn until there is a guide is to search for LUA commands and look at the example scripts. LUA, for me, was difficult to understand at first. It would be best if you had some scripting experiance. But, if you take your time and look at the example scripts and the [snippets] on the forum, you can learn quite a bit. I agree that there is little documentation for beginners, maybe someone should write up a little blurb explaining functions and events all the stuff
  24. Quest

    [REQ] NPCs

    I have been trying to think of a appropriate way of doing this myself. Obiviously you can set elememtVelocity and such. But I don't think it would look smoth going around corners. And with the velocity check the location and if it gets close to a turning point slow it down. But I don't know how much work it would be just to do one car. Sounds like quite the task.
  25. So in are there two ban commads that we can exectute from console? I have been using the Admin Panel, which is very well done btw, but if I want to perm. ban someone should I banSerial like you just showed?
×
×
  • Create New...