pa3ck
Members-
Posts
1,141 -
Joined
-
Last visited
-
Days Won
7
Everything posted by pa3ck
-
Hiya, I'm looking for a full list of zone names like Ganton, East Los Santos etc. I've seen some maps like this: http://img204.imageshack.us/img204/1509/lsstreetmap.jpg but most of them are shortenings, can't get the whole name. Any idea where can I get them names?
-
Maybe you could check oldNick against the current name of the player?
-
Well, I can only hope it's going to be released sooner.
-
"triggerClientEvent ( [table/element sendTo=getRootElement()], string name, element sourceElement, [arguments...] )" You never defined the "sendTo" element, it takes root as default. triggerClientEvent(hitElement,"showParachuteGUI", hitElement)
-
setElementData(attacker, "blood", getElementData ( attacker, "blood" ) + 200 )
-
Soon? Multi Theft Auto : San Andreas - 1.4 (Scheduled For Release 2015-06-01) 1 more year.
-
https://wiki.multitheftauto.com/wiki/Math.round Please keep in mint it's a non-native MTA function, you will need to copy-paste the whole lot then use math.round to round up a number.
-
Because the last player will never die. Check the number of alive players in your onPlayerWasted event and if it equals to 1, give the score and the money to the winner ( not source but the other alive player)
-
This issue doesn't belong to the scripting section, I think the thread will be moved to the right section. Anyways, what OS are you using? Ubuntu / Debian / Cent OS?
-
Use dbExec instead of dbQuery when inserting / updating values, dbQuery is used for retreiving data. Are you sure you have the columns set up correctly?
-
test_db = dbConnect( "mysql", "dbname=frank;host=1.2.3.4", "username", "password", "share=1" ) Fill in your own details: "dbname" database name, "host" IP address, "username" and "password".
-
You don't need any module as MySQL is built into MTA. If you want to use an external MySQL connection, just use the IP address instead of localhost. It works the same way, there's no difference. You never asked a question though, where did you get stuck?
-
Well, as I said, you never unbind the "bindKey("G", "down", "chatbox", "Global");", so actually there are 2 handlers called when you press Shift + G.
-
guiSetAlpha Int. between 0 - 1.
-
Try to unbind the Global when you bind the TeamGlobal.
-
I done something like this for my own server, what I did was, I binded a bind. I mean like: function bindChatKey() bindKey("a", "down", chatFunction) end function unbindChatKey() unbindKey("a", "down", chatFunction) end bindKey ( "lshift", "down", bindChatKey) bindKey ( "lshift", "up", unbindChatKey) That's the way I done it, there might be an easier way though.
-
You forgot the 'addEvent( ..., true )'?
-
I don't know what Deepu is on about, but your trigger is the problem. There's no 'getLocalPlayer()' server side. You defined 'player' in the function already, just use player. Also, if you want to send it to one player only, use the player element as the 'sendTo' argument when triggering. function wyjdz(player, seat, jacked) if getElementData(source, "komb") == true then destroyElement(source) triggerClientEvent (player, "koniecc", player ) end end addEventHandler("onVehicleExit", getRootElement(), wyjdz) Also, if 'sendTo' is a player, you can use source client side, you don't need to pass the player variable.
-
function restoreAllBlood_CMD(thePlayer, theCMD) local accountName = getAccountName(getPlayerAccount(thePlayer)) if(accountName) then if(isObjectInACLGroup("user."..accountName, aclGetGroup("Admin"))) then local alivePlayers = getAlivePlayers(); if(alivePlayers ~= false) then for key, value in ipairs(alivePlayers) do setElementData(value, "blood", 12000); -- AFAIK that's the way it works in DayZ outputChatBox("Server: Your blood was restored to full by an Admin!", value, 0, 255, 0); end end else outputChatBox("Server: You're not a server Admin you can't use this command.", thePlayer, 255, 0, 0); end end end addCommandHandler("BloodAll", restoreAllBlood_CMD, false, false);
-
local vehicule = { 550 = "BMW M5", 551 = "Dacia 1310 Brek", 480 = "Porshe 911 Sport Clssic", } function getVehicleName(model) return vehicule[model] or 'Necunoscut' end addEvent ( "getVehicleName", true ) addEventHandler ( "getVehicleName", getRootElement(), getVehicleName ) I don't know why did you put in the last two lines, you don't actually need it.
-
Oh yea, you're right, I mixed up the two arguments by accident.
-
No, it is going to be sent to a random player from a specific team. You're right, a table should work, if it doesn't, it's an MTA bug. Wiki: If you specify a single player it will just be sent to that player. This argument can also be a table of player elements.
-
You could put the whole thing client side if you edit it a wee bit.