Jump to content

Lander

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by Lander

  1. Hola, un consejo: Intenta hacer scripts basicos antes de lanzarte con scripts mas complejos. No se, hacer un comando para reemplazar el modelo de un auto es un avance y te ayuda a la practica. Así aprendí yo, haciendo scripts sencillos obviamente con la wiki accesible para saber que usar. Todos habrán pasado por este proceso de aprender un lenguaje nuevo (yo aún sigo estancado), pero dale tiempo, ya verás que con tiempo y practica podrás hacer cosas mejores
  2. Lander

    Graphics bug

    Hi there With a friend we are playing MTA SA 1.0.3, and my friend has a strange bug on the graphics, here's a screenshot: And the specs of his PC: AMd QuadCore processor 8 GB of RAM 2 nVidia Videocards Windows XP Professional What''s the problem? Has solution? A lot of power for MTA? Any help will be apreciated, thanks =P PD: This not happend in singleplayer or in other multiplayer clients.
  3. Hi there Some time ago, i've posted my way to play MTA with a Wiimote. Well, i made a video that shows how this works https://www.youtube.com/watch?v=J4jrmiB1X4E Also, i found a bug that MTA only show the first device that it found. MTA recognize other controller and not the chossen one to play. See ya
  4. Hi. I have bougth a Bluetooth adapter for my PC. This is for traspass some photos from my Nokia 2630 cellphone to my computer. Well, a friend told me that with bluetooth and a wiimote i can use it for moving the mouse pointer, controlling the winamp, etc...... Searching videos of the wiimote on GTA (all fakes), i thinking that in MTA would be possible with the joystick function. And it's works!!!!!! If you have bluetooth and a wiimote, you need to download the following programs (search it on google) Glovepie Bluesoleil PPJoy With bluesoleil installed, we need to find the device (in that case, the wiimote). To find it, press the bottons 1 and 2 of the wiimote, next in bluesoleil, double click in "bluetooth sites" and finally in "search devices". This will appear how Nintendo RVL-CNT-01. With the wiimote detected, you have to open Glovepie. Go to file, open, WiimoteScripts, and you can experiment a while with the scripts, such play zelda, mario kart, need for speed, etc..... Now, to play with the wiimote in MTA, you need to open the Steering Wheel script, and follow the instructions (also, you need the program PPJoy). A bug that i found. When i open MTA, i go to settings but the game detect the Wiimote itself, and not the parralel port from PPjoy (if you go to control panel, joysticks, you will se the wiimote and ppjoy installed). To fix it, first you need to open MTA in windowed mode, next go to settings, controls, if you see the parralel port detected, minimize the MTA, detect the wiimote with bluetooth, open glovepie and run the script. Finally configure the buttons and the axis. This method to play MTA with the wiimote it's only for control the car, but if you are programmer, you can configure to play with the Nunchuck and get a new experience to play. Next time i will put photos, maybe a video. See ya, and long life to MTA. Note: I play Live For Speed with the wiimote, is like to take your childrens to the school, only that 150 km/h
  5. I still have the problem >.< I adjunt a screenshot when the problem happend As you can see, the download bar get stuck on 32.63 kbs, after 20 seconds, i get disconnect from the server.
  6. Hi there I'm hosting a Nightly build and updating it every week, in a PC with Wine. The problem is the next: I'm my PC (Windows XP SP3) when i host the server, I can enter without problems, I can change the gamemode, etc....... But when i'm trying to enter to the server hosted in the PC with Wine, i can't download the main resource correcty (a modified version of Freeroam GUI) even if i downloaded the same resource from the other server. What's the problem????? Can I report this problem on the Bug tracker???? Also, what strategy you recommend to host a dedicated server of Nightly Builds????? I'm hosting a different version every week, but i'm studient, and i don't have enough time to update it. Thanks
  7. Hi there If i'm hosting a certain version of MTA Nightly Build, the people can enter to the server with other version of Nightly Builds? Because i'm hosting a dedicated server, and i'm changing the version every week. Also, how i can create a custom map???? ( like this https://www.youtube.com/watch?v=iq_s2keI5xE )
  8. Hi everyone I got a friend who is owner of a cybercafe here in Chile =P. But the problem is the install of MTA dp 2.3 on the PC. The videocard is a integred geforce 6150, after the intro, the menu is black. The especification of the PC are: AMD Athlon x2 1gb of RAM GeForce 6150 of 256 MB (integred) I told to my friend that use the AMD core optimizer, but he said that the problem is the videocard, because he also play SA:MP and the client run perfectly. What's the problem?????? Thanks
  9. Hi I've installed the last nightly build, and i got this error Also, i've got a miss file, that MTA needs, the file is called irrKlang.dll What's wrong????
  10. The code was taken from the wiki. wdwLogin is the login windows for my gamemode, also taken from the wiki. Now, I put if ( guiGetText( edtUser ) ~= "" ) and ( guiGetText( edtPass ) ~= "" ) then -- rest of the code end And works, but when someone write a random username and password, it's enter to the game too.
  11. like this????? function clientSubmitLogin(button) if button == "left" then if guiGetText(wdwLogin) ~= "" then triggerServerEvent("SubmitLogin", getRootElement(), guiGetText(edtUser), guiGetText(edtPass)) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) end end
  12. I got a big problem with the login window The gui work perfectly, but when press the login button, without write the username and password, the player appears in the map. What's Wrong????? Client Side function CreateLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Porfavor loguea", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Usuario", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Logueo", true, wdwLogin) guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () CreateLoginWindow() addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) outputChatBox("Bienvenido a San Andreas Racing Syndicate. Porfavor loguea. Si eres nuevo, escribe /registro ") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) end showCursor(true) guiSetInputEnabled(false) end ) function clientSubmitLogin(button) if button == "left" then triggerServerEvent("SubmitLogin", getRootElement(), guiGetText(edtUser), guiGetText(edtPass)) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) end end Server Side function joinHandler(username, password) local x,y,z x = 1959.55 y = -1714.46 z = 10 if (client) then spawnPlayer(client, x, y, z) fadeCamera(client, true) outputChatBox("Bienvenido de vuelta", client) end end addEvent("SubmitLogin", true) addEventHandler("SubmitLogin", getRootElement(), joinHandler) As you can see, the script is taken from the wiki, with small modifications
  13. I saw the examples, but i don't understand, a little help will be apreciated. Edit: Now i undertand, sorry for disturbed you =/
  14. Well, i've decided to make the gamemode 100% in lua. Because i'm noob in scripting, learning another languaje could be complicted. Now, i need your help How i can put a command to dissapear the login gui, and appear the License agreement???? Also i need help to script the "don't accept" (no acpeto) button, when is pressed, the player is kicked. Thanks Edit: This is all i got in licence agreement, i wrote the function to change from login to licence agreement function createAcceptationWindow() local X = 0.375 local Y = 0.375 local Width = 0.348 local Height = 0.409 wdwAccept = guiCreateWindow(X, Y, Width, Height, "Aceptacion de reglas", true) X = 0.0431 Y = 0.8533 Width = 0.2902 Height = 0.1247 btnAccept = guiCreateButton(X, Y, Width, Height, "Acepto", true, wdwAccept) X = 0.0431 Y = 0.846 Width = 0.2902 Height = 0.1247 btnNoAccept = guiCreateButton(X, Y, Width, Height, "No Acepto", true, wdwLogin) guiSetVisible(wdwLogin, false) end function hideLoginWindow guiSetVisible ( wdwLogin, false ) guiSetVisible ( wdwAccept, true ) end addCommandHandler ( registro, hideLoginWindow )
  15. For now, i have developing the gamemode in 2.3, but will be a good idea to test the nightly builds of 1.0. Thanks for the idea I never worked with pawn, for me, is very hard than lua. I have a question, it's possible to combine functions, scripts, etc..., between MTA and SA:MP emulator???? Ex: An arrest script in SA:MP, and a GUI in MTA that show the arrest code in SA:MP emu. So, let's test the nightly build
  16. OK. i've created the rules acceptation gui, with to buttons: "Accept" and "Don't accept" From the last gui (login), i need to put a commandHandler for this: If a player need to register, type /register, the login gui disspaear and appear the rules acceptation gui, if the player click on accept, appears the register gui, if don' accept, it's kicked from the server. This is the rules acceptation gui (the content i will add later, for now, i have this) function createAcceptationWindow() local X = 0.375 local Y = 0.375 local Width = 0.348 local Height = 0.409 wdwAccept = guiCreateWindow(X, Y, Width, Height, "Aceptacion de reglas", true) X = 0.0431 Y = 0.8533 Width = 0.2902 Height = 0.1247 btnAccept = guiCreateButton(X, Y, Width, Height, "Acepto", true, wdwAccept) X = 0.0431 Y = 0.846 Width = 0.2902 Height = 0.1247 btnNoAccept = guiCreateButton(X, Y, Width, Height, "No Acepto", true, wdwLogin) guiSetVisible(wdwLogin, false) end And this the login gui, exactly from the wiki. function CreateLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Porfavor loguea", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Usuario", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Logueo", true, wdwLogin) guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () CreateLoginWindow() outputChatBox("Bienvenido a San Andreas Racing Syndicate. Porfavor loguea. Si eres nuevo, escribe /registro ") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) end showCursor(true) guiSetInputEnabled(true) end ) function joinHandler(username, password) local x,y,z x = 1959.55 y = -1714.46 z = 10 if (client) then spawnPlayer(client, x, y, z) fadeCamera(client, true) outputChatBox("Welcome to My Server", client) end end addEvent("SubmitLogin", true) addEventHandler("SubmitLogin", getRootElement(), joinHandler)
  17. Hi everyone I've decided for 154434864654546 time to take again my project of MMO Racing in MTA. Before the project was called GTA: Drift City, influenced by the videogame Drift City, now the project has a new name, the name is GTA: San Andreas Racing Syndicate (original, doesn't?), and my new influence is the videogame Test Drive Unlimited. But, Why taking a project that could be a bad idea???? Simple, I believe in the MTA team. Since the Netzeek's attacks in SA:MP, i've have teaching about MTA in chile, a country where the SA:MP is very popular, even when the SA:MP team has block the access to the master server to all sudamericans. I'm very noob in LUA, with luck i can make a window gui, administrate my server and use the resources. The only resource that i make was the model and texture change of the cars, following the wiki. Any help, any collaboration will be aprreciated. Well, let's the project begin. I have the login gui, i copied the gui from the wiki, and changed some things on the windows, labels, etc..... But, i need the register function for the register gui that i will make later (now in chile is the 11:38 pm), and a rules acceptation windows with two buttons, one for accept (that bring the registation gui) and one for decline (that kick the player), that gui i will make it too. Now i going to make the gui and them post here. Thanks for your reading Lander
  18. How i could do that???? Sorry, I'm not scripter
  19. Hi When someone vote for a new gamemode in my server, or when I change the gamemode with /changemode , the gamemode has changed, but the old gamemode it's still there. For example: The default gamemode in my server is Freeroam GUI, it's start with the server. When someone change the gamemode, the change happends, but when someone press F1, it show the menu of Freeroam GUI. What is the problem?????? Thanks
  20. Nice initiative, but...... The cheaters will manipulate the source of MTA and make his own cheats, hacks, etc.... I know that the liberation of the source of MTA is for better, but cheaters are millions in the worlds, and very few know C++, like netzeek, who hacked SA:MP, One.cl and many other servers. Well, that was my opinion, please not take it so badly
  21. In the MTA wiki, where I can get a function for a teleport command???? PD: I'm still making the other project, is not dead =P
  22. 1-. I forgot the login function =P. I saw in the wiki that has no example of the logIn function. Someone can write me a simple login system? 2-. I am working in another gui, now this is for the first car selection. When i finish the gui. I will put here for your comments. I got the gui GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(244,172,364,264,"Selecciona tu primer auto",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[2] = guiCreateButton(0.5687,0.7917,0.3709,0.1591,"COMPRAR",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0412,0.5644,0.4423,0.375,"Selecciona tu primer auto en la cual usaras en tus primeras carreras. Una vez elegido, haz click en COMPRAR",true,GUIEditor_Window[1]) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",true) GUIEditor_Radio[1] = guiCreateRadioButton(0.0549,0.1136,0.3599,0.0985,"Perennial",true,GUIEditor_Window[1]) guiRadioButtonSetSelected(GUIEditor_Radio[1],true) GUIEditor_Radio[2] = guiCreateRadioButton(0.0549,0.2273,0.3544,0.1136,"Oceanic",true,GUIEditor_Window[1]) GUIEditor_Radio[3] = guiCreateRadioButton(0.0549,0.375,0.3599,0.1061,"Glendale",true,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(0.5385,0.1629,0.4368,0.4242,"images/mtalogo.png",true,GUIEditor_Window[1]) I got the idea of the car selection, in every radio button, appear the image of the car selected (that remplace the MTA Logo), and the bottom comprar (buy), makes the car spawn for drive it. 3-. Everyone who helped me on this gamemode, will appear on the final credits (now Ace_Gambit, 50p, Gothem and =FAS=Shigawire helped me. Thanks guys )
  23. Well, I think that is a better idea to use your script of welcomewindow. Thanks anyway for help me on the previous script.
×
×
  • Create New...