franku Posted January 19, 2013 Share Posted January 19, 2013 guys i made a login panel and this is my first script i didn't know what i did exactly can somedoby help me to get knowledge about my script? and did i need mtasa to test it? this login panel scripted in MTA Script Editor. please add me in skype: adward.rody Thanks. Link to comment
iPrestege Posted January 19, 2013 Share Posted January 19, 2013 Please Post Your script. Link to comment
franku Posted January 19, 2013 Author Share Posted January 19, 2013 how to see it i just wrote that in the MTA Script Editor and pressed save and quit. Link to comment
franku Posted January 19, 2013 Author Share Posted January 19, 2013 how to see it i just wrote that in the MTA Script Editor and pressed save and quit. Link to comment
iPrestege Posted January 19, 2013 Share Posted January 19, 2013 copy the script and paste it here using Lua/Lua. Link to comment
franku Posted January 19, 2013 Author Share Posted January 19, 2013 function loginPlayer ( thePlayer, command, username, password ) local account = getAccount ( username, password ) if ( account ~= false ) logIn ( thePlayer, account, password ) outputChatBox ( "Wrong username or password!", thePlayer, 255, 255, 0 ) end end addCommandHandler ( "log-in", loginPlayer ) addEventHandler("onPlayerJoin",root,function() if getAccount(getPlayerName(source)) then outputChatBox("Please Login!",source) else outputChatBox("Please Register!",source) end end) function callAdmin ( playerSource ) sourceAccount = getPlayerAccount ( playerSource ) if isGuestAccount ( sourceAccount ) then outputConsole ( "Please register to use this function!", playerSource ) else end end addCommandHandler ( "call_admin", callAdmin ) Link to comment
franku Posted January 19, 2013 Author Share Posted January 19, 2013 is this really login panel and i must have mtasa to test it? Link to comment
iPrestege Posted January 19, 2013 Share Posted January 19, 2013 is this really login panel and i must have mtasa to test it? this is not a real login panel! it,s sames login using command but there,s some missing functuins!.and you must have guieditor to create window or somthing like that. Link to comment
franku Posted January 19, 2013 Author Share Posted January 19, 2013 yes i copied that login panel because i am begginer and can't learn exactly what to do. so check your outbox please. Link to comment
iPrestege Posted January 19, 2013 Share Posted January 19, 2013 yes i copied that login panel because i am begginer and can't learn exactly what to do.so check your outbox please. first,learn lua language then you can script any script you want ^^. Link to comment
franku Posted January 19, 2013 Author Share Posted January 19, 2013 please stop talking here. 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