-
Posts
681 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zango
-
You can also use interpolateBetween and leave the third coordinate to 0 for interpolating your 2D window. One of the examples on that page pops a window up with an elastic effect, you can try playing around with that.
-
yeah it's on line 18. Is the camera not faded in again? I suppose you want to place fadeCamera (true) at the same place where the window is hid, or on the server side upon successful login.
-
Fourth parameter in addCommandHandler. Also, don't you want (admins) to be able to set health of other people, and not only themselves? How about this: function setHealthCmd (player, cmd, ...) local targetPlayer local health = tonumber(arg[2]) or 100 if (arg[1]) then targetPlayer = getPlayerFromName (arg[1]) if not targetPlayer then if ((not arg[2]) and tonumber(arg[1])) then health = tonumber (arg[1]) targetPlayer = player else outputChatBox (string.format('Invalid player `%s`', arg[1]), player, 255, 0, 0) return end end else targetPlayer = player end setElementHealth (targetPlayer, health) outputChatBox (string.format('`%s` has set your health to %s', getPlayerName(player), health), targetPlayer, 0, 255, 0) end addCommandHandler ('sethp', setHealthCmd, true, false) It will set your health if you specify no player or a number alone. As you can read on the wiki page, the third parameter is whether to block access for everyone but those with access to the command in acl.xml.
-
GameServers4You, for all your gameserver needs.
Zango replied to GameServers4You's topic in Hosting solutions
I'd love to get my server hosted off a VPS as well -
It's an installer for wine-based software. My post is almost a year old, and if I remember correctly it was in response to "Den" who've edited his post instead, but asked about something related to that port.
-
Mate_ has pulled off a seemingly very appreciated job by doing this resource. From what I can tell, this gamemode is rich on features and the interface looks very slick. The problem is hidden functionality is incorporated into this closed-source gamemode that allows Mate_ (one person) to ban people on servers using this gamemode, ultimately providing him a great amount of power. No one is interested in having one person, behind everyone's backs, in possession with this power. I am under the impression we want a community based on democratic and open source principles. With the secret banlist, this resource is highly detrimental to that vision. I'm not discussing Mate_'s or the use of this banlist's legitimacy. I find it's abusive conduct of the MTA community to give yourself this power without the server owners' consent. I mean most of us prefer MTA over SAMP because this type of thing doesn't take place. You could also say it is the people's responsibility to decompile and find out how this resource works, but that's a bullshit turn.
-
[SOLVED] Starting the server from a web based control panel
Zango replied to Kieren's topic in Linux-Server
You can start mta-server with parameter -D to daemonize it, "natural" alternative to nohup and output trashing. While I recommend you use the daemon option, see if this works: nohup ./mta-server > /dev/null 2> /dev/null < /dev/null & -
To spare everyone and your gran from needing to sign up for reading the post, here it is:
-
Kayl_QtToLua.zip provided in the below mirrors include: (info extracted from qttolua page) QtDesignerLite.zip - the light standalone version of Qt Designer, only piece required to design your .ui interfaces. QtToLua.zip - the real deal, the application which converts your Qt .ui files into LUA code working in MTA guitest.zip - the example resource shown in the screenshots The documentation will be moved to a new server some time in February. Mirrors MegaUpload - http://www.megaupload.com/?d=3DCF10T5 MediaFire - http://www.mediafire.com/?lxl57dshjdcx5xf sendspace - http://www.sendspace.com/file/8mszqd 2shared - http://www.2shared.com/file/QzbrArCw/Kayl_QtToLua.html
-
It works indeed, but do you have a busy server or is it slightly demanding they restart it. Support is pretty much 0 and mentioned here. If you need a server for you and your friends serverFFS might be a good choice based on their easy setup and control panel, but I wouldn't go with it if you plan on going big.
-
What are the dimensions of your image?
-
First off, your script is invalid (and differs) from all the examples you've posted here. I don't know why you edited it, but opening debugscript 3 should tell you what's wrong. You simply can't use an if statement like that. I suggest you try the Scripting Introduction at the wiki, to get a basic grasp of Lua. 1) Remove the if statement. 2) Line 2 & 5 (rancher.txd/rancher.dff) those files are invalid. 3) Line 7 contains a typo as highlighted below: 'engineImport ( d1310txd, 445 ) ' Attempt to call a nil value (engineImportXD) makes the script yield error, which means stop in programming terms. When a script is stopped like that, the rest of the file isn't processed (and nothing is replaced). It has been mentioned several times to use debugscript, and I'll mention it once again: Use debugscript! It puts all errors and warnings in this neat box at the bottom of your screen. Here is the corrected version of your rvhs.lua file.
-
Type argument doesn't matter. It could also be that your custom vehicles are invalid. Please .zip your resource (including files) and upload it somewhere.
-
Was more like restructuring of your script, but that's alright. If there are no errors in debugscript and no vehicles are replaced it's most likely not calling the function. Try putting an outputChatBox or outputDebugString call in the top of your replacement function to check it.
-
You've a typo in the script. engineImportTXD ( dustertx, 489 ) > engineImportTXD ( dustertxd, 489 ) Try this: local vehicleReplacements = { [489] = {txd = 'txd/rancher.txd', dff = 'dff/rancher.dff'}, [445] = {txd = 'txd/admiral.txd', dff = 'dff/admiral.dff'} } function replaceVehicles () for model,replacementData in pairs(vehicleReplacements) do local txd = engineLoadTXD (replacementData.txd) if txd then engineImportTXD (txd, model) end local dff = engineLoadDFF (replacementData.dff, model) if dff then engineReplaceModel (dff, model) end end end addEventHandler ('onClientResourceStart', resourceRoot, replaceVehicles) addCommandHandler ('repveh', replaceVehicles) Add your remaining replacements to the vehicleReplacements table
-
let me show you the door
-
Replace mta-server along with the other files. Mind you the configuration for 1.2 changed, you might want to consult this article.
-
MTA's anticheat is actually doing remarkably well in my opinion. A few years back it was problematic, not to the same degree as SAMP is currently but still a problem because it did not block cheats like as sobeit. However due to MTA functions it was possible to script your own anticheat against this until today where MTA has this protection natively. MTA blocks any clients with any important file modified (VF fail) and any known cheat (AC). If you run a server and it get's a reasonable amount of players you'll notice how many players it actually kicks out over time. To be honest I haven't seen a cheater in over half a year. I'm wondering if the interest in SAMP is still so high because of the lack of anticheat
-
1) Start or download the resource interiors. It places markers outside most known houses and buildings, which makes it feel like you're entering the house, while you're actually being warped to an interior (usually the same, but different dimensions). 2) Try deleting editor_dump resource. It should be in server/mods/deathmatch/resources. 3) It says in the resource description how to use it. Add the ACL edits and start the resource.
-
That "wrong port" are you sure that isn't 22126? unless your server port is 21993. ASE port is server port + 123. Anyway the open port checker tool only works for ports with MTA server running. So it would say a port is closed regardless of whether it is, an MTA is running there. (or some other service that provides similar data I think).
-
Indeed that thx to toady! CLICK FOR FULL
-
PURCHASED
-
Take a look at arc_'s GPS resource which contains some of the functions you are looking for. It would also be a strange turn for MTA to create functions that will move the vehicle around etc., as this should really be handled by script as all the functions are there and easy to use. I do think however making the path data available via MTA is a good idea. The vehicle path data is just around 3MB, and it would be unnecessary to always transfer these by script if available in GTASA (and of course retrievable by MTA) but I'm not sure that's possible if SCM is disabled, as mentioned above.
-
Try using string.find(name,"|",0,true) instead. Will search for "|" but no need to escape it, as the fourth argument means the string won't be formatted by reggex. Also I'd use this: string.gsub(name,"%W","") remove anything else than alphanumeric stuff.