Jump to content

remaked

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by remaked

  1. Bank system: So basically this is a bank system where players can deposit their money, it's using SQLite and tables to save/load data, there is no element/account data so the performance is expected to be great. Features: - Registering a bank account including a PIN for safety. - Ability to change your PIN. - Ability to deposit/withdraw money. - Ability to transfer money even to offline accounts. - You can add ATMs easily wherever you want by modifying the coordinates tables in the script. - All bank accounts and their information is saved using SQLite. - Exported functions for admins: - exports.banking_system:getPlayerPIN(plr) -- get a player's PIN - exports.banking_system:getAccountPIN(accountName) -- get an account PIN - exports.banking_system:setPlayerPIN(plr, PIN) -- set a player's PIN, PIN should be a 4-digit number - exports.banking_system:setAccountPIN(accountName, PIN) -- set an account's PIN, PIN should be a 4-digit number - exports.banking_system:getPlayerBankCash(plr) -- get a player's amount of cash in his bank account - exports.banking_system:getAccountBankCash(accName) -- get an account's amount of cash in that account's bank account. - exports.banking_system:setPlayerBankCash(plr, amount) -- set a player's amount of cash in his bank account. - exports.banking_system:setAccountBankCash(accName, amount) -- set an account's amount of cash in that account's bank account. LINK: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18441 NOTE: You can post here about any bugs you may encounter.
  2. canceling onPlayerDamage has no effect, cancel onClientPlayerDamage instead.
  3. so I have a marker which is connected to an "onClientMarkerHit" event, I want to make it so if a player enters the marker(which opens a GUI) he will have to wait for example 3 minutes so he can get that GUI again by entering the same marker i hope you got my point
  4. I'd like to ask two questions: 1- How can i make a ped not take damage server sided(so not onClientPedTakeDamage with cancelEvent), it says in wiki that onPlayerDamage with cancelEvent doesn't do that. 2- If I want my script to be triggered only once a week, is that possibl with setTimer? If not, then I'd like to know how that could be done. Thanks.
  5. so i want to make a script like, when I take a picture with camera ingame, the picture should be sent to MTA folder(screenshots). Don't give me a ready script please, just tell me how to do that, and I will do it by myself to learn more
  6. remaked

    Download

    Add an event handler addEventHandler ( "onPlayerLogin", root, function() if ( not Downloader.gotResponse ) then outputChatBox ( "We're still waiting for the server to accept our request. Please wait", 255, 255, 0 ); return false; end for i, v in pairs ( Downloader.Mods ) do Mods.SetModEnabled ( i, true ); end end )
  7. Hello. So I basically created this simple script which gives the player a jetpack when he types /jet. function giveJetpack(thePlayer, commandName) -- Our function and arguments. if(givePedJetPack(thePlayer)) then -- Checks if the player got his jetpack, we don't need an output here since the player will clearly see the jetpack. return true -- end -- ending the "if". if(getPedOccupiedVehicle(thePlayer)) then -- Checks if the player is in a vehicle, so if he's he won't get his jetpack. outputChatBox("You can't use this command while in vehicle!", thePlayer, 255, 255, 0) -- If he's, it will output a message. return false -- returns false so he doesn't get the jetpack. end -- ending the "if". end -- ending the function. addCommandHandler("jet", giveJetpack) -- the command we chose which is /jet in this case, keep in mind you can change it. I want to know what should I do so when a player types /jet again the jetpack gets removed, thanks in advance.
  8. This screenshot explains it all: Solutions I don't like to hear please because I tried them: Re-install MTA / Reinstall GTA / Set memory stream to the max / Set draw distance to the max / Delete all your mods.
×
×
  • Create New...