Jump to content

pa3ck

Members
  • Posts

    1,141
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by pa3ck

  1. 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?
  2. Maybe you could check oldNick against the current name of the player?
  3. Well, I can only hope it's going to be released sooner.
  4. "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)
  5. pa3ck

    [HELP] Please

    setElementData(attacker, "blood", getElementData ( attacker, "blood" ) + 200 )
  6. Soon? Multi Theft Auto : San Andreas - 1.4 (Scheduled For Release 2015-06-01) 1 more year.
  7. pa3ck

    Symbols limit

    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.
  8. pa3ck

    Pls HELP!!!

    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)
  9. 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?
  10. 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?
  11. 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".
  12. 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?
  13. 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.
  14. guiSetAlpha Int. between 0 - 1.
  15. Try to unbind the Global when you bind the TeamGlobal.
  16. 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.
  17. pa3ck

    Trigger

    Show me your client side script, using [ code = lua ] [ / code ] without spaces.
  18. You forgot the 'addEvent( ..., true )'?
  19. pa3ck

    Trigger

    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.
  20. pa3ck

    Exports

    What do you mean? getPlayerTeam and setPlayerTeam are both MTA functions. You mean you want to create a function to check if the player is in a specific team?
  21. pa3ck

    [HELP] Please

    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);
  22. 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.
  23. Oh yea, you're right, I mixed up the two arguments by accident.
  24. 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.
  25. pa3ck

    [Fixed][Ty]

    You could put the whole thing client side if you edit it a wee bit.
×
×
  • Create New...