Jump to content

Spajk

Members
  • Posts

    285
  • Joined

  • Last visited

Everything posted by Spajk

  1. Nice work, a big amount of people will use it for sure
  2. I was saying about the avast files Dealman mentioned
  3. I think there's a simple solution. Make it possible for other people to create their own master servers and an easy way for players to change the master server.
  4. Spajk

    Buy Menu

    thePlayer isnt defined in the client script, use localPlayer
  5. It is possible that those files were infected.
  6. This should do the trick: function v1p ( source ) outputChatBox ( "Want to be VIP? add skype Load31", source, 0, 250, 150, false, false) outputChatBox ( "VIPs can not abuse their extra skills", source, 0, 250, 150, false, false) playSoundFrontEnd ( source, 5 ) removeCommandHandler("vip", v1p) setTimer(addCommandHandler, 10000, 1, "vip", v1p) end addCommandHandler("vip", v1p)
  7. oh, sorry
  8. label[1] isnt defined.
  9. You cant store tables in account data. Use toJSON and fromJSON.
  10. Add outputChatBox(characterID) Then tell me what it writes in the chat.
  11. Spajk

    onPlayerQuit

    It wouldnt hurt to try.
  12. Function getAccount returns an account element. Just do if(password_check)
  13. https://wiki.multitheftauto.com/wiki/GetAccount
  14. Spajk

    SQL or HTTP

    Thanks a lot
  15. Spajk

    SQL or HTTP

    But, I am trying to make MTA use less power, while I dont really care about the web server
  16. function SpawnHunter ( player, wep ) To function SpawnHunter ( player, cmd, wep )
  17. You should use MTA's in-built HTTP server: https://wiki.multitheftauto.com/wiki/Re ... Web_Access Look at example 2: https://wiki.multitheftauto.com/wiki/HttpWrite
  18. Spajk

    SQL or HTTP

    Well, I have put a weird title, but I couldnt think of anything else. The question I have is simple. I have some variable whose value I want to sync with a database. So, on every change I need to update the db. So, would it be better if I directly update it using MTA's db functions or to send a request to a local http server via call remote and let it handle the rest of updating. My goal is to lower the usage of MTA server, so what would be better? (HTTP, MySQL and MTA servers are running on the same machine.)
  19. Spajk

    string format

    Hmmm, I will try to find a better way tomorrow
  20. Spajk

    route

    Remove the comma after the last position
  21. Its a bit harder, Desaster, but you should be able to use MTA's inbuild http server.
  22. uh, sorry, I first named the table "vehicle", but then, as its commonly used name, changed it to playerVehicle and forgot the change it on other places
  23. Spajk

    Collisions

    I think you could create a collision if you had a .dff from that object using 3ds max and coll editor.
  24. You got really nice GUIs there
  25. This is the worst way to do it... Here's a nice way: local playerVehicle = {} function enterVehicle(player) vehicle[player] = source end function exitVehicle(player) vehicle[player] = nil end function playerDied() local vehicle = playerVehicle[source] playerVehicle[source] = nil setElementDimension(vehicle, 0) end addEventHandler("onPlayerWasted", root, playerDied) addEventHandler("onVehicleEnter", root, enterVehicle) addEventHandler("onVehicleExit", root, exitVehicle)
×
×
  • Create New...