Jump to content

beatles1

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by beatles1

  1. Hashed, not encrypted. It's not good enough without being salted. Most users will use common words and maybe some numbers and so without salt they will be very vulnerable. What's happened has happened, I just want to know.
  2. Were passwords salted, I'm slightly worried by the post not mentioning it that they weren't?
  3. From my tests you get audio played directly out of the speakers as if you were viewing the webpage normally. Might be nice to have the audio as an element so that we can play it 3D or to speakers as we wish.
  4. Just tested and it is really awesome. Just made a really quick control system for the 3D example and added a PC next to it (http://pastebin.com/XQ8dUdtu). So much potential here but I do feel the request system is not needed and makes it more difficult to let users browse the web unless there is a wildcard option. Really great work, can't wait for keyboard support and a release of some form at some point. Thanks.
  5. Awesome, really nicely done. Personally I don't think the room for abuse is as big an issue. Servers can already load any image onto the server and can download these via the web so I'm not sure this would bring any new problems. Just my opinion.
  6. Is there a best practice for upgrading servers or is it a case of copying all files other than conf and db files?
  7. When you want a whole number between 1 and that number you only need to specify one argument in math.random. So here it would be math.random(100) instead of math.random(1, 100). If it only gets one argument it takes it as an upper value and uses 1 as the lower value. http://lua-users.org/wiki/MathLibraryTutorial
  8. If you mean the default MTA accounts and internal SQLite databases then its not going to be possible to have two servers share one at the same time. When the server starts it locks down the database so it can only edit it itself and therefore two servers can not access it at the same time. You would have to use a custom MySQL setup to allow two servers to access the database at the same time.
  9. Not unless you want to create a full HTML parser I am afraid. Closest option I would think of would be serving images of the page via some sort of server and showing that in a GUI but it would also be hard work and not a very good solution.
  10. Wish I spoke another language and wasn't such a useless sod now
  11. How can I get all online players from a server via PHP. There must be a default way because there are services such as game-monitor.com that do this and dont require extra scripts. Getting the page from one of these services and cutting it down to just the playernames works but is quite a big workaround. Thanks in advance for any help.
  12. No, I only want it to run for players if in a car or not. The problem is that otherwise it is checking loads of player only things on the cars that get spawned within the col and cars that the player drives into the col that give warnings. I think I was right at first and must have just made a small mistake somewhere. So this: function aFunction( element,dim ) if getElementType ( element ) == "player" then -- check if player hit colshape --Do something end end addEventHandler ( "onColShapeLeave", aCol, aFunction ) Will only run the code if the element hitting the col is a player and it will work if he is in a car as well? Thanks for the help guys, I really appreciate it.
  13. It should only run for players but I tried "player" as well. What I need to do is stop it from running for vehicles. I thought players counted as peds though. And am I right in thinking that when you enter a col in a vehicle both the vehicle and the player hit the col separately as the player is still another element.
  14. Thanks that's really great. Just one last question though, I cant get getElementType to work. My code is like so: function aFunction(sourcePlayer) if getElementType ( sourcePlayer ) == "ped" then Do something end end addEventHandler ( "onColShapeLeave", aCol, aFunction ) But nothing is get recognised as a "ped" whereas if I comment out the end and the if statement it runs fine (I need it to stop warnings when a non ped goes through the col). Am I doing something wrong in this snippet or should I be taking a wider look at my code to find the problem?
  15. Wow thats great, much better than what I had scripted . But it takes a long time to remove a lot of cones 1 by one and I need to be able to remove all of a players cones when they disconnect. How would I remove all cones, do I need to go through all numbers to 100? And if so it might be a good idea to limit the amount of cones that can be spawned.
  16. Thanks guys that works great. EDIT: Ignore the below, stupid mistake As its kinda a similar question, how would I do the same for an object. I want a player to be able to spawn (preferebly about 5) of the traffic cone object and then delete them via commands. I started with 1 cone at a time and used the same as with the timers: local cone = { } function spawnCones (sourcePlayer) local x,y,z = getElementPosition ( sourcePlayer ) cone[sourcePlayer] = createObject ("1238", x, y, z-0.6) end addCommandHandler ( "cone", spawnCones) function destroyCones() destroyElement(cone[sourcePlayer]) end addCommandHandler ( "deletecone", destroyCones) Having no luck so far, sorry for me not properly understanding LUA properly, I should probably buy a book or something.
  17. What I want to do it to set a timer using a players name and the word timer when a player enters a col and then kill the timer when they leave. Server: function aFunction(sourcePlayer) [getPlayerName ( sourcePlayer ).."Timer"] = setTimer ( anotherFunction, 120000, 1 ) end function anotherAnotherFunction ( sourcePlayer ) killTimer(getPlayerName ( sourcePlayer ).."Timer") I get an error about not being able to give the timer a non boolean value. How would I do this then? I am assigning names as all the timers need to be associated with players.
  18. beatles1

    Ambulance

    Thanks that works great. Got a real mind block though. If I wanted to have more than 1 medic skin then what would I use as I obviously cant use or? Thanks again that's been a real help.
  19. beatles1

    Ambulance

    Hi, Today I had a go at making a script that would give a player full health if they entered an ambulance and give the driver $500 if there was one and they where in the right skin. I found that this was a bit beyond my skill level so I would be grateful of some help. I can see how to use getElementModel to check every time someone enters a vehicle if its an ambulance but then how would I check for the drivers skin and give the driver money as well as the passenger health? Any help would be appreciated. Thanks in advance.
×
×
  • Create New...