Jump to content

Zango

Discord Moderators
  • Posts

    681
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zango

  1. Sorry, I don't think getPlayersInTeam wants theTeam argument to be in a string. My bad, replace with this: local cops = getPlayersInTeam (cops) And in future, try searching for "getPlayersInTeam" on mtaforums, there are always examples scattered around of proper use.
  2. Well, I assume "cops" is a Team, so you'd want to get the guy's speed when he hits marker, and output it to every player in the team. local marker = createMarker ( 0, 0, 3, "cylinder", 2 ) -- create the marker, visible to everyone by default function leakSpeedForCops(hitElement, matchingDimension) if getElementType (hitElement) == "player" then -- verify the player element local speedx, speedy, speedz = getElementVelocity (hitElement) local actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) -- returns one number with decimals, like 0.65. local cops = getPlayersInTeam ("cops") -- get the players in team "cops", assuming "cops" is a team. local player = getPlayerName (hitElement) -- get player name for playerKey, playerValue in ipairs ( cops ) do -- loop through every player in "cops" and output speed outputChatBox ( player.."'s current speed: "..actualspeed, playerValue) -- output speed end end end addEventHandler ("onMarkerHit", marker, leakSpeedForCops) -- attach an event handler Haven't tested it, mistakes reserved. If cops isn't a team, you can put your players into a table and do the same.
  3. linux.multitheftauto.com Or if you weren't referring to the server version, you have to run the client in Wine. Lets take an example, and presume you have GTA San Andreas installed in Program Files under the C drive. C:/Program Files/Rockstar Games/GTA San Andreas/gta_sa.exe Now, this is an invalid installation directory as gta_sa.exe is an executable, not a folder. To fix this, remove /gta_sa.exe from the path so it will now look like this: C:/Program Files/Rockstar Games/GTA San Andreas
  4. The default installation path contains gta_sa.exe, which is not a valid directory. Make sure you select "GTA San Andreas", without a slash at end. And obviously make sure your GTA San Andreas works properly in single player first.
  5. Let me get this right - you are hosting a server on your LAN network - but game-monitor can obviously only scan internet servers, but you want to monitor your LAN server like the way you monitor internet servers? Well, I think you should go into the MTA Browse Servers window and press "LAN". There you can see player count and whose playing. Why don't you go look at the server console?
  6. I think if his .exe was 1.01 or 2.00 it would display another error message, but you can always try the gta_sa.exe patcher by Talidan. I'd suggest buying a retail version from shop, using the gta_sa.exe patcher and installing the latest stable MTA:SA version. I am running 1.0.4 on Windows 7 in Compatibility mode as admin and it runs fine.
  7. Try Right click > Properties > Compatibility > Tick the box called "Run this program in compatibility mode for:" and select Windows XP (Service Pack 3) Press Apply and OK, now try opening MTA and see if that helped. If it didn't, make sure it is ran as Administrator even tho Compatibility mode should do that by default. If none of these fixed it, please post the exact error message, MTA and OS version. And obviously make sure your running the latest release build.
  8. fileWrite takes string as arguments after theFile. You are trying to send an integer. To fix this, use tostring which will convert the integer into a string. Secondly, getElementPosition returns three floats. You cannot store this in one variable, so you need three or else you will only have your X position printed. function consoleCommandTest ( thePlayer, command ) local newFile = fileCreate("test.txt") if (newFile) then a = getPlayerFromName( "PLEP" ) if a then x, y, z = getElementPosition (a) if x and y and z then fileWrite(newFile, tostring(x), " ", tostring(y), " ", tostring(z)) fileClose(newFile) end end end end addCommandHandler ( "mypos", consoleCommandTest )
  9. https://forum.multitheftauto.com/viewtop ... 26#p314326
  10. I wouldn't advise you to pay a scripter per 100 lines. If the person is immoral enough he/she could take advantage of this, eg. setElementPosition( x, y, function () return z end ) Instead if I were you I would pay the scripter based on the functionality of the outcome. If you have no clue about scripting I see that it is hard judging the quality of the script. Or you could determine a permanent salary for as long as the scripter does what you provide of tasks.
  11. Zango

    Scripting gui

    marker1 = createMarker ( X, Y, Z, "cylinder", 1, 255, 255, 0, 170 ) -- your marker code goes here function enterMarker(hitPlayer) if hitPlayer == getLocalPlayer() then guiSetVisible (yourGUIelement, true) -- replace "yourGUIelement" with the name of your GUI window. end end addEventHandler ( "onClientMarkerHit", marker1, enterMarker) hitPlayer == getLocalPlayer() verifies that it is a valid player, and if it is, it calls the GUI.
  12. Zango

    External Server Browser

    I liked it, but it crashes my router. As soon as I open it up and press the "Refresh" button, it loads and then it disconnects me from the router, leaving me unable to reconnect and having to restart it. Windows 7 and Router WRT54GS
  13. I think the first WARNING: serwer.lua: Access denied @ 'addAccount' - Line: 8 is causing the other two, since you can't setAccountData on your new account if it isn't added WARNING: serwer.lua: Bad argument @ 'setAccountData' - Line: 9 WARNING: serwer.lua: Bad argument @ 'logIn' - Line: 10 and you obviously can't login when it doesn't exist. Open up acl.xml, and puzzle around with the permissions. It's good practice to get to know the acl. https://wiki.multitheftauto.com/wiki/Access_Control_List
  14. MTA VC 0.5 Linux server: http://files.mtasa.com/apps/0.5/mta05_server_linux.bin MTA VC 0.5 Windows server: http://files.mtasa.com/apps/0.5/mta05_f ... taller.exe Windows. Download the MTA VC 0.5 Windows server file. Browse to your Downloads folder and execute the installer. Install it, and then run it. (might wanna use Run as Administrator on Vista / 7 just to avoid any maybe-trouble) Open it up, Go to "Create Server" tab. Specify name, users and map. Click "Setup Server" for more settings. If you expect people from the Internet to join your server, please do this: Leave password field empty. Forward port 2003 UDC/TCP in your router. (use Google for more info). Press "Create Server" and your server will be listed on game-monitor.com within 24 hours if you remembered to forward ports and/or add exceptions in your firewall. (I think thats about it, you can also download the Win32 zip package instead) Linux. This guide applies for Linux Debian. Download the MTA VC 0.5 Linux server file. Upload to a directory via FTP. for example (/mtaserver/mta05_server_linux.bin) Establish a SSH connection (use PuTTY). Perform the following commands: apt-get update apt-get install screen chmod 777 /mtaserver/mta05_server_linux.bin screen -S mtaserver cd /mtaserver ./mta05_server_linux.bin follow the instructions and install. when finished ./MTAServer0.5 if it says permission denied > chmod 777 /mtaserver/MTAServer0.5 and try again wait 24 hours for a refresh on game-monitor.com. Please bear in mind these are created of my remembrance, there might be holes.
  15. I remember reading your scripting tutorial from ages back and I quite liked it. I also did show my appreciation if you noticed. I do not know what you actually mean in that. Everybody reading that does care or they wouldn't be reading it? The fact is, that when people finished reading your guide, their not spending their time praising you but having fun in notepad with their new knowledge. Those who doesn't care are those who doesn't need it. I liked the guide a lot. When writing tutorials / guides the motivation is helping a lot of people. If you do not bother / don't want to help a lot of people, or you simply do not have the desire for it, then I think it's hard to find the motivation.
  16. I am personally from Denmark, I would gladly support this project both economical and hosting related. Just PM me if you ever consider opening it.
  17. I have one identical, the following did what I needed apt-get install screen screen -S mta-server if 'screen' package cannot be found, you might wanna change sources.list or try apt-get update. then when you want to resume console, simply screen -r mta-server and it will resume.
  18. Increase the Z value of the positioned arrow with 1. For example if it is 32.5 then it should be 33.5. I get this problem everytime I place a marker with createMarker. For cylinders I have to decrease with 1 tho. I hope that was your problem. You could try it out.
  19. Zango

    FPS Problems

    FPS Limiter is a serverside setting specified in mtaserver.conf to avoid player's gaining an advantage in race gamemodes. Having more FPS also increases the speed at which your vehicle goes. There is for instance a noticeable difference in players having 15 FPS and the ones with 36. 36 is the default FPS limit set on most MTA-Servers. You can increase this to 60 on your local server, open up mtaserver.conf and go to the FPS limitation area. <!-- Specifies the server frames limit. Minimum value: 25, default: 36. --> <fpslimit>60</fpslimit> EDIT: Didn't see your edit lol.
  20. https://wiki.multitheftauto.com/wiki/ShowChat A function which is used to show or hide the player's chat. Something I found laying around in my resources folder, provides an example to /toggle the chatbox. g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_Me = getLocalPlayer() g_Show = true function testCommand() g_Show = not g_Show showChat(g_Show) end addCommandHandler("chat",testCommand) You could then obviously replace the CommandHandler with an event handler related to when you want it off.
  21. http://websiteoutlook.com/www.mtasa.com $12227.5 USD is a pretty decent amount actually. Well it's based on visitors, I ain't saying that anybody will actualy buy mtasa.com for $12228. Still nice Google.Com Estimated Worth $2.41 Billion USD -- Well Sa-Mp.Com Estimated Worth $69809.9 USD. It's been there longer and it's probably favorited in search engines, yet it's pretty much. But sa-mp.com have placed Google Ads on their main page, which is already a step down for freeware sites in my opinion.
  22. Zango

    My Webpages

    http://cozza.bhd-evosoft.com/iplog.txt Funny you log the our IP's while as we visit and it's public accessible to. Not that I have anything against that, it's our own free will to visit it. I mean, our IP's are logged everywhere anyways. Well, your http://cozza.bhd-evosoft.com/input.php, "MTA Server querier" is a great job. I find it very usefull actually, since there is delay on game-monitor not to think about the loading time.
  23. -- IP: 94.76.240.28 //// mtahostings.com Port: 2003 Map: Vice City Deathmatch Availability: 99,9% Slots: 26 Version: 0.5 -- I myself would personally love to play MTA:VC again. I can get myself including another one to playing, but that's about it. I've tried this before without luck. Secondly, Deathmatch server's with 2 ~ 4 player's gets boring.. The 'Stunt' mode is sure epic fun with the nitrous mode at Pizza boys / taxi's etc... Last time I played, I can be sure to say that 'sync bad!!!' is in the right place. We had terrible trouble with playing with each other. We we're only two who could successfully play around. Out of sudden other people just freeze and you cant do anything but reconnect to fix the desync. I don't know if this was a problem with slightly different GTA: VC versions or if it's always been like that.
  24. You need to place the resource in C:\Program Files\MTA San Andreas\mods\deathmatch\resources. (I don't know if that's the exact path to your MTA resources folder). I presume your using a listen server (Menu > Host Game), so in the menu simply add 'dxspeedometer' and start it up. (or if you've added yourself as admin in acl.xml, type /refresh and /start dxspeedometer.) Also providing only IP's doesn't fit you any better than being crawled by Google. You cannot connect to a MTA server without a port. You should check yourself that the speedometer works. When it does, you will know. The same procedure applies for most resources downloaded off MTA website.
  25. He's probably referring to http://bugs.mtasa.com/view.php?id=5162 - "Download timeouts caused by temporary internal web server failure" Where you join and you get 'error downloading requested files'. This tend happen on all Linux Debian 5 distributions, which is a pretty used OS.
×
×
  • Create New...