Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Kevin_Linden

  • Rank
  1. Thanks 5Op for the links. Here is what i have so far. I haven't ran it yet but i wanted to know what the community thinks of it so far. Its just a start. I might even want to open source this if its good when its done to my likings. I also am not sure if i have to many end in the spawn function but i think i might be okay with it. I guess the CarID could be the ElementID when the car got created from the store. If this looks great. Then i plan on to make it so it will add the settings to the ElementID. I think i'll have to use something like Setelement. The SQL i'm not really sure if its right
  2. How could i do a car system where people can buy cars, Each card would have a ID. They would be reswaned by a /reswanedcar command. Cars could also have the color changed/Mods. Also they wont explode when damaged. Also the heath of the car will be saves. Also /park would save the pos. With Locks/Unlocks also being saved. I'm not really sure how to go about doing this. I kind of have a idea of using a forloop in a sql database. The reswaning is the part i'm not really sure how that would work to put the cars on the map, Then load its data looping in a sql database. I'm also not sure how to read
  3. Does the SA-MP emulator for MTA still work?
  4. There is the script. function pay(Player, command, who, amount) local person = getPlayerFromName ( who ) local playerMoney = getPlayerMoney (Player) if ( playerMoney >= tonumber (amount)) and (tonumber (amount) > 0) then givePlayerMoney (person, math.abs(tonumber(amount))) takePlayerMoney (Player, math.abs(tonumber(amount))) outputChatBox ( tostring (amount) .. "$ has been paid to " .. who, Player, 255, 0, 0, false) else outputChatBox ("You cannot pay more money than you have!", Player, 255, 0, 0, false) end end addCommandHandler ("pay
  5. Okay. How can i fix it so if i had -1000 and i get paid $5 i then have -1005 but i should have -995?
  6. givePlayerMoney (person, math.abs(tonumber(amount))) It workd before i did checks but i died like a million times when my friends and random people got on my server and killed me. So then i lost tons of money for hospital bills. So i had -$0011890 then someone pays me 5$ , I then have -$0011895 when i should of had -$0011885. Not sure how to prevent that. So right now the code does not work and if it did it would allow people who are negative to keep going negative with they get paid positive. function pay(Player, command, who, amount) local person = getPlayerFromName ( who ) local playe
  7. Thanks 50p. I can now look them up on the wiki!
  8. How can i make a object/person that stands there all the time that you can click that pops up a gui?
  9. I'm using on onPlayerQuit, to save people data when people exit and it works, But if i type quit in the console. there data does not save. How can i fix that?
  10. It was because i was on a 64 bit os.
  11. I do cd /home/Kevin/mta ./mta-server Then i get $ /home/Kevin/mta/mta-server -sh: /home/Kevin/mta/mta-server: not found But its there if i do $ ls LICENSE README core.so mta-server xmll.la NOTICE core.la mods net.so xmll.so So its there. What should i do? More data if it helps $ ls -la total 2016 drwxr-xr-x 3 Kevin Kevin 4096 Mar 3 05:19 . drwxr-xr-x 11 Kevin Kevin 4096 Mar 3 05:04 .. -rw-r--r-- 1 Kevin Kevin 35821 Oct 24 19:33 LICENSE -rw-r--r-- 1 Kevin Kevin 6508 Oct 24 19:33 NOTICE -rw-r--r-- 1 Kevin Kevin 29 Oct 24 19:33 README -rw
  12. Thanks! I had to change a few things but now it works find! I'm also looking for people to be part of creating the RP.
  13. Thanks. Look like i forgot a , and my ) Thanks
  14. Thanks. Now i'm trying to add it to save laction data but its not for some reason when i check the accounts.xml Here is the script -- Based Parts and/Or whole from Icedsun's Login GUI (logingui) by icedsun AND login_register By Dr4x -- Money System added by Kevin --Default spawn location, if you wish to use one... local spawnX = 1959 local spawnY = -1714 local spawnZ = 17 --Default welcome messages... local welcomeMessageNewUser = "Welcome to our server!" local welcomeMessageReturningUser = "Welcome back to the server!" function on4XLogin ( player, user, pass, thePreviousAccount, theC
  15. Yes but i want to save there rotation also, how can i do that?
  • Create New...