Think of it as someone who just recently got GTA:SA and is now searching google if there's a multiplayer. He will probably enter "GTA san andreas multiplayer".
MTA is first mentioned at the second result page whereas sa-mp has the first entry...
Another thing is that the first version of sa-mp (no matter how crappy it was) already got released a couple of years before MTA deathmatch and thus already had a noticeable userbase back then.
This may be what you're looking for:
function onChat( message, messageType )
cancelEvent()
if not isPlayerMuted(source) then
message = string.gsub(message, "[^ -~]", "")
outputChatBox(message, getRootElement(), 0, 0, 0, true)
end
end
addEventHandler( "onPlayerChat", getRootElement(), onChat )
It's not tested though.
I suppose you're talking about the freeroam resource?
If so you'll first have to navigate to MTA San Andreas\server\mods\deathmatch\resources and open the file or folder called "freeroam".
There you should find a file called meta.xml
Open it using notepad and edit this line:
<setting name="*vehicles/maxperplayer" value="[2]" />
After that you just have to save everything and restart the freeroam resource in case the server is already running.
You do free the result after you've retrieved all the data from it that you need.
I would suggest you just do the query, store the needed result values as variables and then free the result.
Either way has disatvantages...
Most mp shooters are using the server to do hit calculation etc. but as the MTA server isn't aware of the gta world this is not an option here.
GTA simply isn't designed to have so many smoke particle effects rendered at the same time and thus does it very inefficient and causes such a heavy impact on your fps.
If you're working on resources for multiple servers it's quite useful to keep things seperated.
i for myself got a normal 1.0 install (which the editor defaults to), a copy of the zombiemod server, a copy of the vG server, etc...
Also adding an option that allows you to modify the server path that the editor uses globally doesn't sound like "lots of changes" to me