Jump to content

cokacola

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by cokacola

  1. Hey, I am trying to make a little server manager in C#, and there isn't an SDK for it, so I am going to make one. I just want to know how the other SDKs work? how do I communicate with it? I assume it involves the web panel, a custom resource(I can setup the resource, since I understand PHP and can look at the SDK page for that), and the POST protocol. Also, if I make this SDK for C#, is anyone else interested in obtaining it(should I release it)?
  2. Hey I have 2 questions this time: 1.Whats the best way to add extra seats to a vehicle(such as the Shamal plane)? I assume its to glue the player inside, make them invisible, and some how make the camera work just like the drivers camera --how do I do that? 2.When creating custom cars, isn't the build in collision file for that vehicle supposed to work? because I found a couple new cars online, which are supposed to be enter-able(note: there is no custom handling / col file edits), I got them and imported the DFF/TXD file for the vehicle using the engine functions, but the new collisions don't work. --How do I fix this? Thank you
  3. Okay, thanks I'll look into the GUI functions. As for the math, I'd have figured it out myself, but I seem to be bad at math(not even sure where to start )
  4. Hey I got 3 questions for you guys: 1.My cars have 100 fuel when first spawned. At the moment, there is preset fuel decreases depending on your speed. I was wondering if there is some form of math equation for fuel reduction based on the speed, so I won't have to write like 30 IF statements in my code. 2.How do I create a little red bar that slowly goes down to reflect the amount of fuel(between 0 and 100) that the car has(only visible to the occupants of the vehicle, or possibly the driver) --not asking for code, just some hints / tips / functions on how to do this myself, I don't like asking people to make my scripts for me, its not right {solved} 3.If the above question is answered, how can I create rounded text in the center of the bar? I know the serverside code for adding text, but got no idea on how to round it, so it isn't like "89.44356454", but rather just "89".{solved} So, for any people who can help me, I thank you
  5. cokacola

    Funny Peds...

    Okay, So I am playing the nightly build of MTA, well, my brother is, and he was punching a ped. The ped then turned around and started beating him to death. The ped kept on punching and punching. Well, actually the ped is still going. Anyone else had this happen yet? Note, the ped has NO control states or anything, it is simply just spawned. LoL WAIT: It appears the ped is chasing him, turning, running and beating. Wtf.
  6. I actually noticed the line number one, where you turn the line numbers off, then on, and it duplicates the line. Very silly that is ^.^
  7. Okay. I did not even know you could edit the resource config from the admin panel
  8. Must be. I found some settings in the meta.xml that contain how far away you can be before the sound gets quiet. Turning that up works, but then car's have sound for long distances, so I guess its sort of annoying
  9. This is fail with air vehicles ^.^ I cannot hear any music in the Andromada or the AT-400. In the Shamal it can only be heard from that cockpit view(one where you cannot see you car, just whats in front of you), and you also cannot hear without the cockpit view when in the Maverick helicopter. Those are the ones I tested so far. Also, it is really quiet when in the Monster Truck.
  10. Cool, just tried it out Note: It appears to not support .ogg sound files: I will assume that is something with the new sound library same with the old library... EDIT: I have a question, is there a wiki page for MTA 1.1 scripting functions, or did you look at the source code?
  11. Is he talking? thats actually pretty cool I subscribed(my youtube is 'ittehbittehkitteh') EDIT: Checked out the one where you used /run and /crun to create the remote controlled ped car. Simply AWESOME.
  12. LOL "Hey, I like trains" "Yes you do, ha ha ha" the train murders everyone ^.^
  13. cokacola

    MTASA Trailer

    That was awesome Good job
  14. I saw that too, it was lol. Is this what the "Post here and see what happens" thread was for? so we could be at a lan party with people from around the world, who couldn't actually have gone if it were most certainly real? For the sake of random B.L.A.S.T: I wish I new how to understand C++ and the MTA source just enough to make trains work. Trains are the only reason I play SA-MP. Well, they work, but I mean, trailers on them ^.^ Also, I am beginning to wonder what it is that mr.hankey supposedly brought in... I thought it was real till I saw my name.. EDIT: Wait a second.. the "Post Here and see what happens" thread is gone... I think it WAS that thread, and they just messed it up good job. I knew I shouldn't post in something like that...in the B.L.A.S.T section ^.^
  15. Hey guys, I need someone who can point me in the right direction, the direction I need to go to achieve this: What I am trying to do, is add a custom "item" to the map editor, to spawn what I will call Bomb Spots. Then, when I can place them, I need to be able to access them using a lua script(they will be in a saved map, of course) After I access them, I am going to need to create a function, that when executed, will shoot 1 missile down to each of these "Bomb Spots". I think I can create the missile, but the main problem will be creating the Map Editor Definition, and loading the coords with LUA. To whom can help me, I say thank you
  16. OFFENDED? ARE YOU KIDDING! being offended was the least of it, Your lucky that I wouldnt go to the authorities cause I don't want to prevent any future events. Aside from that, the games were fun, if not a little too intense, and although i didnt get a prize, I did get something out of it. since we arent discussing it Ill just say that I decided to take that test we all took again.
  17. In this case, I would not worry about hacking, because the server is local, and not on the internet. The only person here who might have a chance of hacking it is me, and I don't really need to do that, because I already have the database password ^.^
  18. Well, if I simply "forget" it, then all the members will need to regenerate their passwords, which is why I haven't done that.
  19. Never knew that, but does the SQL version of MD5 work like PHP, and take 2 parameters?
  20. I am simply trying to encrypt a password to work with a password in a mysql database, but the password in the database was encrypted using PHP, and a very long hash key(WHY do I keep mixing encrypt and hash up? ^.^), but the password generated with PHP was done like this: include("acckey.php"); md5($password,$acckey); Of course, that sure isn't the entire registration script. So, I am currently looking up the PHP SDK script in the wiki, for MTA, so I can have PHP encrypt it the same way it does when someone registers. Also, I am not so great with PHP's file functions, so if you are, do you mind if I PM you a question about something?
  21. Yea, I am aware of that. A comma is for seperating arguments, but a Dot is for concatenating things. I have used PHP for a while(years), but the last time I coded anything in MTA's Lua was ages ago.
  22. Yea, thats what I thought. I tried the 2, actually, in php I done md5("lol","25"); and got an overly hashed password, and in MTA I tried md5("lol".."25"); and the 2 returned completely different results. Also, MD5 in MTA returns uppercase, where PHP returns lowercase. I may need to use that PHP sdk and send the request to PHP...
  23. The PHP MD5 says it only has 1 argument, but if you add 2, it seems to hash them togeather or something, but MTA's MD5 returns the same string. I know, as I use the PHP's MD5 all the time. EDIT: I might try and add the password and the key togeather with .. to see if it returns the same as PHP would with pass,key.
  24. Hello, I am currently rewriting my login system to work with a current database of users, but I have run into a problem. Users must sign up on the website, but when they sign up, PHP encrypts the password with the format md5(password,key); I tried doing that in MTA, but md5(password) and md5(password,key) appeared to return the exact same output. Is this intentional, or a bug? Anyway, is there someway around this? because if not, it may become a problem for me. Thanks, if you can help P.S. When I saw the new site and forum theme, I loved it. Also, its nice to see MTA up there in the 15 modders thing, with garry himself(love playing Garry's Mod) EDIT: One more thing, does MTA use the Gamespy protocol or something similar(I am trying to config a game panel script, but it has not custom config for MTA) EDIT2: Wow, I am blind. There they are in the config for the script: "Multi Theft Auto", "Multi Theft Auto: San Andreas" and "Multi Theft Auto: Vice City". How did I miss that... So, never mind the protocol thing.
  25. too bad then, could have been quite funny..especially when not telling anyone about it ..
×
×
  • Create New...