Booo Posted October 7, 2012 Posted October 7, 2012 (edited) client addEventHandler("onClientResourceStart",getRootElement(), function() if not fileExists("settings.xml") then local settings = xmlCreateFile("settings.xml","AutoLogin") local Username = xmlCreateChild(settings,"Username") local Password = xmlCreateChild(settings,"Password") local Serial = xmlCreateChild(settings,"Serial") xmlSaveFile(settings) end local node = xmlLoadFile ("settings.xml") local Username = xmlFindChild(node,"Username",0) local Password = xmlFindChild(node,"Password",0) local Serial = xmlFindChild(node,"Serial",0) local pass = xmlNodeGetValue(Password) local user = xmlNodeGetValue(Username) local serial = xmlNodeGetValue(Serial) if getPlayerSerial(localPlayer) == serial then triggerServerEvent("triggerThis",getLocalPlayer(),user,pass) end end ) addCommandHandler("autologin", function(command,username,password) local node = xmlLoadFile ("settings.xml") local Username = xmlFindChild(node,"Username",0) local Password = xmlFindChild(node,"Password",0) local Serial = xmlFindChild(node,"Serial",0) local user = xmlNodeGetValue(Username) local pass = xmlNodeGetValue(Password) local serial = xmlNodeGetValue(Serial) if user == "none" or user == "" then xmlNodeSetValue(Username,username) xmlNodeSetValue(Password,password) xmlNodeSetValue(Serial,getPlayerSerial(getLocalPlayer())) xmlSaveFile(node) else xmlNodeSetValue(Username,"none") xmlNodeSetValue(Password,"none") xmlNodeSetValue(Serial,"none") xmlSaveFile(node) end end ) server addEvent("triggerThis",true) addEventHandler("triggerThis",getRootElement(), function(user,pass) logIn(source,getAccount(user),pass) outputChatBox("You have been automatically logged in to #FFFFFF"..user.."'s#00FF00 account!",source,0,255,0,true) outputChatBox("To disable AutoLogin, use /autologin!",source,0,255,0,true) end ) Edited November 21, 2012 by Guest
manve1 Posted October 7, 2012 Posted October 7, 2012 mate posting what you actually need would be better, or a problem even, not just "?????????????????" P.S. Yes i counted all "?"
Booo Posted October 8, 2012 Author Posted October 8, 2012 mate posting what you actually need would be better, or a problem even, not just "?????????????????"P.S. Yes i counted all "?" i need id object nope
Booo Posted October 8, 2012 Author Posted October 8, 2012 Run the editor then search ... Searched for id I have not found
Allentus Posted October 10, 2012 Posted October 10, 2012 Hi boo, Try searching in some of these pictures you may find something; Plants: http://farm7.staticf...5862b032d_b.jpg http://farm7.staticf...234154b93_b.jpg http://farm7.staticf...7958b472d_b.jpg http://farm7.staticf...a7c3e9ef3_b.jpg http://farm7.staticf...0f8c17d8a_b.jpg
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