Jump to content

Mr. Maxilian

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by Mr. Maxilian

  1. Thanks! I was wondering about this method, but I didn 't know if the objects would be displayed coherently. I understand that everyone will sync, but the players will not be displayed?
  2. I had the idea of creating an interior "With Windows" where there would be a real city, on the example of GTA Online. I kind of figured out how it works and how to do it. But I would like to know if it is possible to make several apartments (In GTA Online the same business or house is in the same place, and the view from the window is the same, but at the same time each player is in its interior). Tell me how this can be created and is it possible at all? Or did I not understand how it was arranged at GTAO?
  3. I understand the algorithm, but I don 't understand how to write it in code. I have x1, y1, z2 - the last coordinates before death, and there are x2, y2, z2 - the coordinates of spawn after death. I got the data, and then what? (How it should look to code)
  4. Hi! I created a few coordinates with a point of spawn. I need the player to be revived after death at a point that is closer to him. How can this be realized? Is it possible to make with a array and radius?
  5. Tell us how to create the movement of the car (I mean to create a transport that will move itself along the specified route). What function do I need to use?
  6. How to write such a function?
  7. Hi everyone! I need to do one feature, but I don 't know how. I need every player who enters the game to assign a certain number starting from 1. And I also need these numbers saved before the player comes out. If the player has left the game, then his number may be taken by another. Help me, please.
  8. Mr. Maxilian

    help

    Hello. There were several questions, someone will be able to help? (I have a system of authorization on clean mysql now. There are such fields as "name", "password', "money" and such other.) 1. Whether as to me to make check such player already on the server is authorized or not. I receive a name of the player for validation of the password with "guiCreateEdit". How to make check that the player with such name did not come into a game yet (that it was impossible to log in one account on 2 different computers)? 2. How to me (for example) to learn how many money at the player from the money field in the database, and to issue to the player (after he is spawn)? 3. Whether it is possible to realize similar such system selection of clothes as on video? If yes, prompt that as?
  9. Prompt how for example to receive quantity of money from the field "money" and to issue them to the player?
  10. 10 line. Unexpected symbol near ' '
  11. Correctly? addEvent("PlayerCheck", true) function PlayerCheck(player, username, password) if type(username) == "string" and type(password) == "string" then local qh_account = dbQuery(db, "SELECT * FROM accounts WHERE username=? LIMIT 1", username) local result_account = dbPoll(qh_account, -1)[1] if result_account then if result_account.password == password then-- success else-- wrong password  end else-- wrong username  end end end addEventHandler("PlayerCheck", root, PlayerCheck)
  12. I need to check at first whether there is such login, and then only the right password or not. (Not at the same time)
  13. Does not fit. I use mysql plugin
  14. All hi. Help please... I receive the login and the password which is entered by the player at an entrance. How to me to check correctness of the password (it is necessary to make corrections)? --Client ... local rpn = guiGetText(show_PN) --player login local rpp = guiGetText(show_PP) --player password triggerServerEvent("PlayerCheck", getLocalPlayer(), getLocalPlayer(), rpn, rpp) ... --Server addEvent("PlayerCheck", true) function PlayerCheck(player, username, password) ip = getPlayerIP(source) qh_username = dbQuery(db, "SELECT * FROM accounts WHERE username=?", username) local result_username = dbPoll(qh_username, -1) if #result_username >= 1 then qh_password = dbQuery(db, "SELECT password FROM accounts WHERE username=?", username) local result_password = dbPoll(qh_password, -1) if #result_password >= 1 then ... else triggerClientEvent(player, "error_password", root) end else triggerClientEvent(player, "error_username", root) end end addEventHandler("PlayerCheck", root, PlayerCheck)
  15. Can I run multiple triggers at once? How to do this?
  16. I have a function in the resource "onClientResourceStart" that runs everything else. Maybe you can make a check on the spawn player or something?
  17. Create a login system, faced with this problem: I need to for the player who came to run the resource with authorization. But I don't know how to do it, because my resource runs for everyone. Please help, or if you know how to make it easier - please describe.
  18. I have a resource which runs another resource when the server comes player: function PlayerJoin() resource = getResourceFromName("player-auth") startResource(resource) end addEventHandler("onPlayerJoin", root, PlayerJoin) The problem is this: This resource is triggered FOR ALL PLAYERS, and I need it to ONLY run FOR the PLAYER WHO JOINED! HELP, PLEASE!
  19. ALL THANK! I will use MySQL)
  20. Tell me, what is better: MySQL, SQLite or XML? (You need to save (and retrieve) many user settings)
  21. And what better "MySQL" or "XML" to save accounts?
×
×
  • Create New...