Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/04/22 in all areas

  1. I agree with XaskeL, clusters are the most efficient way of doing this. @Hydra Feel free to use this cluster library, which I am using for the airplane resource. Or find another library if the cells are too large, there should be more available. (this is size 31x31) local sourceMap = Cluster:new() --[[ SET ]] local cell = sourceMap:getCellFromWorldMap( x, y ) if cell then cell:setData( "key", "<mixing>" ) end --[[ GET using position ]] local centerCell = sourceMap:getCellFromWorldMap( x, y ) local cellCollection = sourceMap:getCellsBetweenCells( sourceMap:getCellFromSourceMap( centerCell.x - 1, centerCell.y - 1 ), sourceMap:getCellFromSourceMap( centerCell.x + 1, centerCell.y + 1 ) ) -- 9 cells returned (but can be less) -- LOOP: cellCollection cell:getData( "key" ) --
    2 points
  2. Airplane This resource adds ambient aircraft to your MTA map. As many as you want, as long as the MTA element stream engine likes it. The aircraft models can be modified in config_s.lua. The resource was pre-mentioned in the Server time sync resource, because it is was an example resource which made use of serverside time. (And still makes use of) But by posting updates there for a different resource is a bit confusing. It is beyond a test resource now. Note: you still need to download the server time sync resource for this resource to work. You will be given an option to download server time sync resource, when you the download the resource airplane. The resource doesn't only creates planes, but also helicopters. Which is confusing I know, since the resource name is 'airplane'. But it was already too late for that without losing my version archive. Version 1.2.0 / 1.1.1 video's Admin settings Quantity aircraft Developermode Displaying the airplanes and other useful information. Demomode true - Let the resource create the aircraft false - Fill in your own aircraft list manually in file: config_s.lua How the aircraft is adjusted according to the GTA map. The blue crosses are used to display the max ground height of that specific area(200x200). You see that the crosses are placed higher near trees and buildings. The resource will adjust the aircraft height according to this data. This view is visible when development mode is active and some adjustments in the config_s.lua for the ground height data. Dataset for the aircraft height is available here: https://wiki.multitheftauto.com/wiki/Dataset-map-height Pro's: Low CPU usage after initialization. No network usage after initialization. Only the dependency server time sync will use network usage after initialization. Not that many lines of code for you have to scan through, if you want to modify the resource. Simple to implement. If you find a bug, I will be here. Con's No AI implementation. Brain-dead AI. The 'time based driven (animations)' concept is used, not everybody is familiar with that concept. That makes it harder to edit. It basically means that the aircraft animations are unstoppable, since time doesn't stop either. Pro: Which nearly nullifies the need of constant network usage between the server and the client. All aircraft are indestructible (even if not set to damage proof). (Can also be a pro) But I might add something in the future to counter that... but I first must figure out how that is suppose to work. Does not work outside of the GTA map. Download link: Resource Airplane Other downloads: Resource Server time sync Dataset GTA map height
    1 point
  3. eu estava usando cheat de outro jogo e o mta estava aberto acabei tomando ban no MTA sendo que eu n estava usando o cheat no mta. . me ajudem por favor meu serial é esse 7CA65394F29312F5192D6D29E3F4CC03
    1 point
  4. Hello everyone, Now i preesent you simple MTA:SA server monitoring solution written in go language. Actually this is an adoptation of Lipau3n's python 3 solution ( topic, repo ). Via server object you can get some information like: Game (mta) Address string with MTA server ip address Port - server main port (UDP) AsePort - main MTA:SA port + 123 Name - server name Gamemode - server mode Map - server map Version - mta:sa server version Players - number of players on the server right now Maxplayers - the maximum number of players that can join Usage example: package main import ( "fmt" "github.com/LuaSavage/mta-monitoring/server" ) func main() { // pass server address and port exampleServer := server.NewServer("185.71.66.81", 22003) // Note that it updating fields once. // To update them frequently or on occasion you've to have some sort of poller if err := exampleServer.UpdateOnce(); err != nil { panic(err) } // Printing updated data in objects structure fmt.Printf("%+v\n", exampleServer) // Printing link to join mta:sa server fmt.Println(exampleServer.GetJoinLink()) } Source code here: github
    1 point
×
×
  • Create New...