Cook1eMons7a Posted July 11, 2012 Share Posted July 11, 2012 I was just wondering if there is anyway to make vehicles not dissapear when you log out? For example my mate makes a car, is there anyway for it to stay there even if he logs out? Also, anyway for it to stay if I turn the server off?? Thanks Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 getElementDimension -- 5 or more onPlayerLogout Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 @teteomar: Your reply makes TOTALLY no sense. @Cook1e: What game mode are you using? Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 @teteomar: Your reply makes TOTALLY no sense.@Cook1e: What game mode are you using? there's no function called isPlayerLoggedIn which check if the player logged in or not but i wonder if it already exist so . my reply is about set setElementDimension for all vehicles ID's https://wiki.multitheftauto.com/wiki/Vehicle_IDs i'm not so expert like you but this as far as i know Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 There is no function with that name, but there's a function to check if a player is logged in. getPlayerAccount returns an account element from a player, if he/she is not logged in, it'll return the guest account. Link to comment
Guest Guest4401 Posted July 11, 2012 Share Posted July 11, 2012 there's no function called isPlayerLoggedIn which check if the player logged in or not isGuestAccount getPlayerAccount Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 My bad, I forgot about isGuestAccount function. Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 function Check(player) local account = getPlayerAccount ( player ) local guest = isGuestAccount ( account ) if account == guest then setElementDimension ( im too lazy FOR the cars TABLE, 5 ) end end addEventHandler("onResourceStart", getRootElement(), Check) sorry that's the best i can do good luck Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 Can I ask you teteomar to stop replying to what you don't know? that script code makes no sense as most of your posts. Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 Castillo i like to help peoples like you and the others this code not tested and if that code is not alright you can fix it by a little quote and you made me so sad by the way Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 I know you want to help, but this way you'll confuse them even more, I may be rude, but is the truth. Link to comment
Cook1eMons7a Posted July 11, 2012 Author Share Posted July 11, 2012 @SolidSnake14 I am using freeroam I think, the one where you can just mess about Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 The only way would be editing the Freeroam script. Link to comment
Cook1eMons7a Posted July 11, 2012 Author Share Posted July 11, 2012 Is that hard? Im not good at scripting D: Link to comment
Castillo Posted July 11, 2012 Share Posted July 11, 2012 If you don't have any idea about what you need to change, I would investigate first. Link to comment
Cook1eMons7a Posted July 11, 2012 Author Share Posted July 11, 2012 What do you mean?? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now