-
Posts
865 -
Joined
-
Last visited
Everything posted by Callum
-
Using getElementZoneName would be a lot better for a solution to your problem. I even told you this on IRC last night.
-
I'm working on a gamemode for MTA, based on Team Fortress 2 (I'm not entirely sure at the moment, may keep it identical to TF2, or perhaps add a few twists of our own). Development is going well, the core is done - the only thing that seems to be a problem is how certain weapons work (such as the flamethrower), though some hacky setWeaponProperty stuff can somewhat fix it. Anyway, I need some help with it. I don't need help with Lua (and won't be enrolling any other Lua developers - I've learned from the past that absolutely nobody can be trusted), but rather with media and graphics. I am looking for three assistants to fill the following roles; * Media Manager - Responsible for creating trailers, posters, adverts, and other media, for public use (technically this would also be the advertising manager). The Media Manager must also be able to extract imagery from Team Fortress 2 (for example, provide me with an image of the door, as used on the team selection menu). * Engine Manager - Responsible for being a consultant on the GTA engine, and furthermore creating textures, particles, and whatever else, to be hooked into the GTA engine. * Mapper - Responsible for creating the official maps that shall be redistributed with the software - will also create the maps that will be used for testing. If you're interested in any of the roles above, feel free to either reply, or contact me via PM. It would help if you could provide evidence of work you have already done (links to community maps made by you, media you have made, work you have done with the GTA engine). I am not really bothered whether or not you are involved with any other servers, or run your own - as you will not be given any source code access, there won't be any trust issues. Once the gamemode is stable, it will be freely distributed to anybody who wants to use it, but the source code will remain private. It will automatically handle maps that are loaded (there will be various types of map, including Capture the Flag, Deathmatch, and Capture Points), and will support your own Message of the Day, and configuration. If there is enough interest, and all goes well, there will be updates every few weeks, introducing new features and any bug fixes, if any bugs are discovered.
-
Your offer has a loophole...you cannot garuntee that you can fix a resource for any price, however, you will create one from scratch from $0 (which includes the price, $0). So if somebody wanted to fix their script, it'd be cheaper to have you make a new one, for free?
-
... You clearly didn't compile this code yourself. Ask the author.
-
replace getResourceRootElement(getThisResource()) with resourceRoot
-
Look into using events to transfer data between the server and client.
-
I used to ask the same question, but if you think about it, it can differentiate on a mass scale depending on the complicity and interval of scripts running on the server, where the players are in accordance to each other (lightsync vs puresync, etc), exactly how long the players are connected, etc etc. I think it's quite impossible to calculate a value.
-
Change 'vehMark' to 'vehMarker'. You should understand it, quite a simple problem.
-
function checkBalance(thePlayer) local account = getPlayerAccount ( thePlayer ) local bankMoney = getAccountData ( account, "bankcash" ) if ( bankMoney==false ) then setAccountData ( account, "bankCash", 0 ) bankMoney=0 outputChatBox ("hi") else outputChatBox ("EagleBot: " .. getPlayerName(thePlayer) .. " has $" .. bankMoney .. " in his bank!" ) end end addCommandHandler ( "bank" , checkBalance ) function saveBalance() end addEventHandler ( "onPlayerQuit", getRootElement(), saveBalance ) function withdrawBalance() end function storeMoney( thePlayer, command, cash) local account = getPlayerAccount ( thePlayer ) if isGuestAccount ( account ) then return not outputChatBox ( "* Invalid account.", thePlayer, 255, 0, 0 ) end local bankMoney = getAccountData ( account, "bankcash" ) or 0 local store = bankMoney+cash takePlayerMoney ( cash ) setAccountData ( account, "bankCash", store ) outputChatBox ( "You stored $" .. cash .. "in your bank!", thePlayer) end addCommandHandler ( "store" , storeMoney )
-
Google, and the official documentation of whatever you're using, is your friend.
-
Feel free to learn C++ and come help out. Or just get a nightly.
-
or better, with this; addEventHandler("onClientResourceStart",resourceRoot,loginPanel)
-
Your image returns a HTTP 403 (Forbidden).
-
People are bothered a lot more about their own reputation, rather than actually helping. They'd rather post something stupid and/or short, so they get their post count +1, instead of writing a long one and seeing that somebody else has already replied.
-
With outputDebugString, if the level is 3, you don't need to specify (as this is the default value).
-
A lot of gamemodes are shipped with MTA, and should be in your resources directory. Moreover you can search the community resources listings.
-
This can already be done, as long as servers work together on it.
-
One of your scripts (or the gamemode) will be resetting the player's team when they die, this is not native to MTA.
-
You can simply use if not var then I don't understand how "If not var then" is more simple, it just depends on person how he wants to use it....both good I find the == false quite ugly, like using 'if (var == true) then' when you can just use 'if var then'.
-
As shown (though not instantly obvious) in the link above, type 'openports' in the server console, it will then return the status the three (server, HTTP, ASE) ports after a few seconds. If it is closed, you can open your posts from your router.
-
function warp(source,cmd,x,y,z,interior,dimension) if not z then return end setElementFrozen(source,true) setElementPosition(source,tonumber(x),tonumber(y),tonumber(z)) if interior then setElementInterior(source,tonumber(interior)) end if dimension then setElementDimension(source,tonumber(dimension)) end setTimer(function(player) if isElement(player) then setElementFrozen(player,false) end end,3000,1,source) end addCommandHandler("warp",warp)
-
The ASE port (the port that is used for putting your server on the list) is ServerPort+123, so if your server port is 22003, you will need to forward port 22126. Please note that it can take up to 24 hours before your server is added to the list.
-
const char* szComplexTaskName = GetTaskManager()->GetActiveTask()->GetTaskName(); const char* szSimpleTaskName = GetTaskManager()->GetSimplestActiveTask()->GetTaskName();
-
You must have a trainer installed that you have forgotten about, or are unaware of.
