unknooooown
Members-
Posts
259 -
Joined
-
Last visited
Everything posted by unknooooown
-
I have opened a test server for the resource, so you guys can come and try the game if you want. I would love to get some feedback from players that have tried it. You need http://hamachi.en.softonic.com/ to access the server, as I cant forward ports on my router. Hamachi Info: Network: MTAInvaders Password: 1234 MTA Info: IP: 5.126.31.219:22003 Game Control: Move Left: ARROW_LEFT or A Move Right: ARROW_RIGHT or D Shoot: SPACE Come to think of it, there might be a bug when several people are playing on the server atm. If it becomes a problem, I will fix it asap. FIXED There is a working highscore on the server, that works with the game! Please note, that there are still some bugs that needs to be fixed and the game is FAR FROM complete. But give it a try if you want I'll leave the server running for the rest of the day.
-
Cool. I will probably upload another update later tonight. Gonna make that change so it doesnt fire as many shots. Would also help improve the performance. I am also thinking about making some spawn patterns, so it doesnt seem so random as it is now.
-
I still need an answer to one of my first questions guys You are probably right.. As it is now, it just fires a shot everytime I press Space. Do you guys think it should be Press,Release,Shoot or Press,Hold,Shoot,Shoot,Shoot....? Also this is not Space Invaders, its MTA Invaders So it doesnt have to be 100% like the old classic. But there is always room for changes.
-
Derp.. Which one? There are 3...
-
He was asking for: Only thing I could think of that does that, is setElementRotation.
-
Time for an update! Still havent got an anwser to my last post, so I didnt change anything to the firing mode yet. Here is the new video: https://www.youtube.com/watch?v=1Q628O4b9gc - PRESS THE YELLOW BOX TO SKIP THE SONG. But the song is nice tho!
-
https://wiki.multitheftauto.com/wiki/SetElementRotation Also, root is a predefined variable in MTA, so you DON'T have to: root = getRootElement ()
-
I agree.. I just think its gonna be hard to pick one of your examples that we always would have to use. Some people have no idea what they should do. If we can see from the first post, that "this guy" has no idea what he is doing and probably never will, then its either keep helping like we do now or turn him down. Making code with errors in for people to fix, or at least comment the line where the bug is, would be a nice way if we could make it work. People would learn much more that way. If you look at my posts you will see that I started scripting about 5-6 months ago. Sure I asked a lot of studpid questions to begin with, but most of the time I only had to ask once. I got my answer, tried it a lot of times and learned how to use it.. ( Still ask stupid questions.. ) Most people that we help in here most likely quit scripting after a few weeks, but there are some people out there that really want to learn. Its a tough question Benxamix2
-
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), ..
-
Yes i have server side but it dont takes money and give it to antoher person Do you write: /transferTo - ? Its important that you type it in the same way that SolidSnake wrote it in the script. Correct command is: /transferTo NAME AMOUNT
-
I guess the only way around that is if he/we script a money resource from scratch.
-
SA:RPG[News Topic] | Looking for future testers.
unknooooown replied to unknooooown's question in Client
Thank you a lot Z3RB1AN. I appreciate your support I am taking a break from the server this week, but I will return to work this sunday. Could you drop me a line in private so I dont forget about you? EDIT Same goes for you TheD4N13L. If you're still interested. -
Hi. I just tried to make what you are looking for in my lua commandline. Got a pretty good solution for you. Please note, that this is not the way that you should make it, so it wont work if you just paste the code into your resource. This is to give you an idea of how you can make it yourself. -- First we get a table of all names. names = { [1] = "Baltazar", [2] = "Alojzy", [3] = "Felicia", [4] = "Isabela", [5] = "Jadwiga", [6] = "Katarzyna", [7] = "Krzysztof", [8] = "Klementyna", [9] = "Mateusz", [10] = "Regina" } local playerInput = "Kle" --This is what the user has typed in the command. Example: /transfer Kle 2000 -- It will then look for all users with "Kle" in their name, however it wouldnt be able to find "Klementyna", if all the characters where lowercase, like: "kle". for i,k in ipairs(names) do if string.find(k,playerInput) ~= nil then print(k.." is a possible candidate.") end end This example will return: >>Klementyna is a possible candidate. Tell me if this makes sense to you at all If not, then I will try to explain it a little better. Same goes for the rest of your script. Just want to get an idea of how good you are, before I try to explain it, so I know how I should explain it
-
You are probably right.. As it is now, it just fires a shot everytime I press Space. Do you guys think it should be Press,Release,Shoot or Press,Hold,Shoot,Shoot,Shoot....? And thank you Benxamix2
-
Thank you Needed a break from my server project and I have thought about this a few times before
-
Lost all of my files the other day. Project is on standby for now. This is a work in progress! I will update the post with some more info about the resource a little later tonight Will also upload this resource to the community when its complete and bug free. Latest update! [11/27/11] Latest update![11/24/11] https://www.youtube.com/watch?v=1Q628O4b9gc ENJOY! https://www.youtube.com/watch?v=4KGp-SLzTPM
-
Thats what I like to see ^Dev-PoinT^!
-
I have made quite a few changes, but I think it works now. Can't test it 100% since I dont have your images. But try it and tell me if it works. If not, then I'll see what I can do then. I can't even remember all the changed that I made, so I hope that you can spot them yourself Just ask if there is something you don't understand about the changed. Btw.. There are a few tips that I can give you. localPlayer - Is a predefined variable. Use that instead of typing getLocalPlayer() root - Is a predefined variable. Use that instead of typing getRootElement() When triggering events, try using localPlayer(clientside) or source,theplayer,player(serverside) as the trigger, not the root. If you trigger it on the root, it will trigger for ALL players on the server. But if you trigger on localPlayer,source,theplayer or player it will only trigger for that client. Client: local playerName = getPlayerName(localPlayer) GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} function loginWindow() showCursor(true) GUIEditor_Image[1] = guiCreateStaticImage(0,0,1,1,"images/LoginBack.png",true) GUIEditor_Image[2] = guiCreateStaticImage(.2,.1,.6,.4,"images/Logo.png",true,GUIEditor_Image[1]) GUIEditor_Edit[1] = guiCreateEdit(.2,.7,.2,.05,"",true,GUIEditor_Image[1]) guiEditSetMaxLength(GUIEditor_Edit[1],25) GUIEditor_Edit[2] = guiCreateEdit(.6,.7,.2,.05,"",true,GUIEditor_Image[1]) guiEditSetMasked(GUIEditor_Edit[2],true) guiEditSetMaxLength(GUIEditor_Edit[2],25) GUIEditor_Label[1] = guiCreateLabel(.2,.6,.2,.1,"Username:",true,GUIEditor_Image[1]) guiLabelSetColor(GUIEditor_Label[1],0,0,255) guiSetFont(GUIEditor_Label[1],"sa-gothic") GUIEditor_Label[2] = guiCreateLabel(.6,.6,.2,.1,"Password:",true,GUIEditor_Image[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,255) guiSetFont(GUIEditor_Label[2],"sa-gothic") GUIEditor_Button[1] = guiCreateButton(.825,.1,.1,.1,"Guest",true,GUIEditor_Image[1]) guiSetFont(GUIEditor_Button[1],"sa-header") GUIEditor_Button[2] = guiCreateButton(.45,.7,.1,.1,"Login",true,GUIEditor_Image[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(.45,.85,.1,.1,"Register",true,GUIEditor_Image[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") guiSetVisible(GUIEditor_Image[1], false) addEventHandler("onClientGUIClick", GUIEditor_Button[1], submitGuest, false) addEventHandler("onClientGUIClick", GUIEditor_Button[2], submitLogin, false) addEventHandler("onClientGUIClick", GUIEditor_Button[3], submitRegister, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () loginWindow() end ) function submitGuest(button,state) if button == "left" and state == "up" then guiSetInputEnabled(false) guiSetVisible(GUIEditor_Image[1], false) showCursor(false) outputChatBox("You are playing as a guest please register.") end end function submitLogin(button,state) if button == "left" and state == "up" then local username = guiGetText(GUIEditor_Edit[1]) local password = guiGetText(GUIEditor_Edit[2]) if username and password then triggerServerEvent("submitLogin", localPlayer, localPlayer, username, password) end end end function submitRegister(button,state) if button == "left" and state == "up" then local username = guiGetText(GUIEditor_Edit[1]) local password = guiGetText(GUIEditor_Edit[2]) if username and password then triggerServerEvent("submitRegister", localPlayer, localPlayer, username, password) end end end function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(GUIEditor_Image[1], false) showCursor(false) end function unknownError() outputChatBox("Error 1: Please reconnect and try again.") end function loginWrong() outputChatBox("Error 2: Wrong username/password") end function registerTaken() outputChatBox("Error 3: This name is already taken.") end addEvent("hideLoginWindow", true) addEvent("unknownError", true) addEvent("loginWrong", true) addEvent("registerTaken", true) addEventHandler("hideLoginWindow", localPlayer, hideLoginWindow) addEventHandler("unknownError", localPlayer, unknownError) addEventHandler("loginWrong", localPlayer, loginWrong) addEventHandler("registerTaken", localPlayer, registerTaken) Server: function loginHandler(thePlayer, username, password) local account = getAccount(username, password) if account then triggerClientEvent (thePlayer, "hideLoginWindow", thePlayer) else triggerClientEvent (thePlayer, "loginWrong", thePlayer) end end function registerHandler(thePlayer, username, password) if getAccount(username) then triggerClientEvent(thePlayer, "registerTaken", thePlayer) else account = addAccount(username, password) if account then triggerClientEvent(thePlayer, "hideLoginWindow", thePlayer) else triggerClientEvent(thePlayer, "unknownError", thePlayer) end end end addEvent("submitLogin", true) addEvent("submitRegister", true) addEventHandler("submitLogin", root, loginHandler) addEventHandler("submitRegister", root, registerHandler) META:
-
Does it give you any errors? Type: /debugscript 3 - And try pressing TAB. Post any errors here.
-
That pretty much says it all doesn't it?
-
Error message:[Not fixed (22November)] Need admin help again
unknooooown replied to davve95's question in Client
I'm gonna let the devs know that they should take a look at your topic. If it was my problem however, I would try reinstalling MTA before doing anything else. Doesnt take long, and as long as you remember to backup your resources, you wont lose anything. -
Need to know a little more than "But it gives error" Take a screenshot or copy the error and post it here.
-
I will see what I can do about it tonight. Can't test it right now. I have to take care of some RL stuff, but I will update this post when I have an answer for you. If you figure it out by yourself during the night, please let me know so I don't waste my time
-
You just have to start with something a little more simple. Try making some smaller resources before going into a project like creating a Point System.
