Jump to content

Egor_Varaksa

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Egor_Varaksa

  • Rank
    Square
  1. How to make sure that it does not fall into the ground?
  2. I do not understand. Can you please write all the code that should turn out in the end?
  3. I save all my bank accounts to the database (internal.bd). I don't understand how to make it so that other players can't be given a number that is already recorded in the database function reg(player) local account = getPlayerAccount (player) local num_1 = math.random(0,9) local num_2 = math.random(0,9) local num_3 = math.random(0,9) local num_4 = math.random(0,9) local num_5 = math.random(0,9) local num_6 = math.random(0,9) local num_score = num_1..num_2..num_3..num_4..num_5..num_6 setAccountData(account, "bank", num_score) end addEvent("regbank",true) addEventHandler("regbank",
  4. Hello, I want the player to be given a random 6-digit number when registering with the bank, and that this number does not fall to anyone else. How do I do this?
  5. Thanks, but now if you quickly pass the marker the barrier will remain open
  6. It didn't help. Maybe you can somehow make the object not rotate more than 90 degrees?
  7. How do I fix this? https://youtu.be/UjKePNof-6A Code (server): parkgate1 = createObject( 968, 2777.123, 905.84, 10.666, 0, 90, 90 ) parkgate2 = createObject( 968, 2777.127, 920.71, 10.62, 0, -90, 90 ) gatebar1 = createObject( 966, 2777.127, 920.71, 9.7, 0, 0, 90 ) gatebar2 = createObject( 966, 2777.123, 905.84, 9.7, 0, 0, -90 ) parkmarker = createMarker(2777, 912.994, 7.75, "cylinder", 13, 255, 0, 0, 0 ) local isMoving = false function gatefunc( hitPlayer ) if isMoving == false then isMoving = true moveObject ( parkgate1, 2000, 2777.123, 905.84, 10.666, 0,
  8. How do I fix this? https://youtu.be/UjKePNof-6A Code (server): parkgate1 = createObject( 968, 2777.123, 905.84, 10.666, 0, 90, 90 ) parkgate2 = createObject( 968, 2777.127, 920.71, 10.62, 0, -90, 90 ) gatebar1 = createObject( 966, 2777.127, 920.71, 9.7, 0, 0, 90 ) gatebar2 = createObject( 966, 2777.123, 905.84, 9.7, 0, 0, -90 ) parkmarker = createMarker(2777, 912.994, 7.75, "cylinder", 13, 255, 0, 0, 0 ) local isMoving = false function gatefunc( hitPlayer ) if isMoving == false then isMoving = true moveObject ( parkgate1, 2000, 2777.123, 905.84, 10.666, 0, -90, 0
  9. I want the player to be able to change their account without leaving the server and all their data will be saved. On some servers, when you enter the /logout command, the login panel appears, and you can log in to another account, and the data of the account you logged out of is saved
  10. function save () if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "money", tostring (getPlayerMoney (source))) setAccountData (account, "health", tostring (getElementHealth (source))) end end end addEventHandler ("onPlayerLogout", getRootElement(), save)
×
×
  • Create New...