Jump to content

liamknight24

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by liamknight24

  1. dude try to do it yourself if that dosent work pay somebody to do it or leave it and i really doubt that somebody will just do it for you for free.
  2. hello again MTA i have a little problem with skin saving it does save it to the account but when the player logs in he is just cj?? so the onplayerquit works fine here is the onplayerlogin if it helps and i have allready looked on the wiki thanks for the advice: function onPlayerlogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerSkin = getAccountData ( playeraccount, "Skin" ) if ( playerSkin ) then setPlayerSkinID ( source, playerSkin ) could this be a problem with the logingui im not too shure becouse i did check the resource and it dosent have it in?? thanks for any help.
  3. thanks for all the help guys it works will this be the same properties for positions and skins and other stuff????
  4. ok i have fixed my spawn problem i will test if the money saving works if it dosent my msn is [email protected] if somebody wants to help me step by step and i will give them credit for the help.
  5. so you mean change onPlayerlogin to onPlayerLogin i have just changed it but i cannot test if it works becouse now my player just spawns in the air instead of the logingui spawnpoint is this becouse the script is not in the logingui script it is in the gamemode folder and i added it to the meta.xml??
  6. for some reason i left the server running and it just started to work thanks for the help.
  7. can somebody please tell me how to save things like money im not asking anyone to script this for me i just want to know how to do it so i can save other things like the players skin and health i had a look an the mta wiki and found this: ---money function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getPlayerMoney ( source ) setAccountData ( playeraccount, "money", playermoney ) end end function onPlayerlogin ( ) -- when a player joins, retrieve his money amount from his account data and set it local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "money" ) -- make sure there was actually a value saved under this key (check if playermoney is not false). -- this will for example not be the case when a player plays the gametype for the first time if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerlogin", getRootElement ( ), onPlayerlogin ) i tried to edit it abit so it would work on login and not join but it dosent seem to work with join or login and im also using the logingui script if that will stop it but thanks anyway and also how will it know where to save it or will it automaticly save it to the accounts.xml??.
  8. ok i tried to forward the ports and i looked on lots of guides on how to do it but still dosent forward them
  9. yeh thanks for that site mate i must not have forwarded them correctly i will try again now and post back
  10. my server is running fine i can connect to it through lan and i forwarded the ports and when i try to put it on game-monitor it said no server response found i tried putting differnt ip's in and that didnt work either, and it isnt on the browser list it has only been running a day though. thanks for any help.
×
×
  • Create New...