Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    40

Everything posted by myonlake

  1. Works like a charm here. Make sure you've logged in and you're within the "Admin" ACL group.
  2. createTeam -- to create the taxi team createVehicle -- to create the actual taxi getVehicleController -- to get the driver of the taxi getPlayerTeam -- to check if the driver is actually a taxi driver givePlayerMoney -- to give money to the driver isElement -- each time the timer is triggered, check whether the players actually exist killTimer -- if there are no players when the timer is triggered, then kill the timer setPlayerTeam -- to set the player to the taxi driver team setTimer -- a timer to make it every 3-4 seconds or whatever takePlayerMoney -- to take money from the passenger(s) Use the onVehicleEnter and onVehicleExit events to trigger the function itself.
  3. It's because of the fact that 'msg' only receives one value. Therefore you have to make it receive multiple arguments at once by making it an array like so. Server-side addCommandHandler("asay", function(player, cmd, ...) local account = getPlayerAccount(player) local accountName = getAccountName(account) if (not account) or (not accountName) or (account and accountName and not isObjectInACLGroup("user." .. accountName, aclGetGroup("Admin"))) then outputChatBox("#ffffff[#DF3A01Z-Land DayZ#ffffff]: #FF0000Nincs jogosultságod a parancs használatához!", player, 245, 20, 20, true) return end local message = table.concat({...}, " ") if (message) and (#message > 0) then outputChatBox(message, root, 255, 0, 0, false) else outputChatBox("Használat: /asay <üzenet>", player, 245, 20, 20, false) end end )
  4. You can always use the Lua website to look at these things (http://www.lua.org/pil/19.3.html). local vehicleNames = {} local vehicleIDs = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } for _,v in ipairs(vehicleIDs) do table.insert(vehicleNames, getVehicleNameFromModel(v)) end table.sort(vehicleNames) for _,v in ipairs(vehicleNames) do guiComboBoxAddItem(vehs, v) end
  5. myonlake

    Object drop

    Will it ever be out of stream? Wondering if there's any need of making such script if it's never used when players are nearby.
  6. As far as I know it's not possible to replace CJ's clothes. You can only switch his default skin to another skin (read here: viewtopic.php?f=91&t=67929#p636216).
  7. "localplayer" is not a pre-defined variable. The correct way to spell it is "localPlayer". Switch it to that, and please look at your own code, it's not a big mistake and can be spotted quite easily.
  8. myonlake

    Wont work

    manve1, that's just wrong. He already has a table containing all the required arguments to the function. In order to properly split them in corresponding arguments, he has to use 'unpack' Lua function. Therefore the way he performs the function is just right. I wonder if the table is correct however, so this is how it's supposed to be. local BoxPos = { {0, 0, 3}, {0, 5, 3}, {0, 10, 3} } local marker = createMarker(unpack(BoxPos[math.random(1,#BoxPos)])) If it really doesn't work, even though it should, then do it manually by passing in the specific table values in each argument you want to set.
  9. I've experienced userdata when outputting an array, an element, some weird variables. It's just about everything miscellaneous as far as I can see. And like it says ".. with no predefined operations..", so it's pretty much like that. But yeah, glad you got it fixed.
  10. myonlake

    Object drop

    Wonder why do you need a client nearby to do this? You don't need anything else than createObject to make this work. Just need to have an object that responds to gravity, such as a generic box from some street. It will do everything server-side and it will work even if no one is online. When the object has reached the ground you can make it spawn there again and so it's synchronized with all players that connect after this has happened.
  11. In order to trigger events from same side, you have to use triggerEvent. Therefore switch triggerClientEvent to triggerEvent.
  12. You can use the following functions to make it work. Obviously you need to have the .txd file and the .dff file and set into the resource folder that you're executing the script from. Change the "76" to whatever choice of skin model you want to use in the script. And make sure to change the filenames in the code to whatever the filenames are. Client-side local txd = engineLoadTXD("filename.txd") engineImportTXD(txd, 76) local dff = engineLoadDFF("filename.dff", 76) engineReplaceModel(dff, 76) meta.xml <meta> <script src="filename.lua" type="client" cache="false" /> <file src="filename.txd" /> <file src="filename.dff" /> </meta>
  13. Regardless of where and from who you got the script from, as long as a part of it is leaked, we won't help you. Perhaps you shouldn't have bought something that doesn't work. Maybe script yourself or ask the seller for help, but this is the wrong place.
  14. myonlake

    ACL

    Make sure you've reloaded ACL/restarted your server with the updated ACL file.
  15. This is most likely the easiest way to do it. Server-side local objects = { {14444, 0, 0, 39.25, 0, 0, 0}, {14447, 17.743886947632, 9.8645553588867, 44.16029548645, 0, 0, 0}, {2204, 19.494140625, 12.873046875, 39.4296875, 0, 0, 271.74682617188}, {2200, 10.645572662354, 11.300369262695, 39.4296875, 0, 0, 90}, {2204, 19.6884765625, 10.908203125, 39.4296875, 0, 0, 91.741333007813}, {2200, 25.614032745361, 12.748477935791, 39.4296875, 0, 0, 270.75}, {2180, 16.66547203064, 11.957201004028, 39.4296875, 0, 0, 0.2471923828125}, {2180, 21.960477828979, 12.021797180176, 39.4296875, 0, 0, 0.2471923828125}, {3859, 19.535179138184, 12.772479057312, 40.831754684448, 0, 0, 198.49548339844}, {1714, 17.138763427734, 12.936923980713, 39.4296875, 0, 0, 0}, {1714, 22.464965820313, 12.992523193359, 39.4296875, 0, 0, 0}, {2190, 17.540489196777, 11.59593296051, 40.231340408325, 0, 0, 204.99938964844}, {2190, 22.898059844971, 11.679741859436, 40.231340408325, 0, 0, 204.99938964844}, {2249, 16.361133575439, 12.003992080688, 40.898792266846, 0, 0, 268.99475097656}, {2250, 21.6337890625, 12.029296875, 40.676656723022, 0, 0, 271.49963378906}, {2194, 19.2412109375, 12.861328125, 41.503408432007, 0, 0, 0}, {1569, 11.686566352844, 10.020316123962, 39.4296875, 0, 0, 0.7470703125}, {1569, 23.2516746521, 10.190937042236, 39.4296875, 0, 0, 0.7415771484375}, {2184, 28.33203125, 10.271484375, 43.806510925293, 0, 0, 272.24670410156}, {1714, 29.868679046631, 9.1981220245361, 43.8046875, 0, 0, 270}, {1714, 27.392879486084, 9.9875717163086, 43.8046875, 0, 0, 88}, {1714, 27.412746429443, 8.4638385772705, 43.8046875, 0, 0, 87.994995117188}, {2648, 29.527770996094, 12.137861251831, 44.853710174561, 0, 0, 0}, {2648, 28.605808258057, 12.140626907349, 44.853710174561, 0, 0, 0}, {2648, 27.700630187988, 12.177735328674, 44.853710174561, 0, 0, 0}, {2190, 28.789922714233, 10.429923057556, 44.582248687744, 0, 0, 34}, {2161, 30.88317489624, 6.4854249954224, 43.78727722168, 0, 0, 179.5}, {2164, 31.581113815308, 11.366875648499, 43.799077987671, 0, 0, 270}, {2247, 28.80694770813, 8.2175703048706, 45.042255401611, 0, 0, 20.25}, {11472, 21.193359375, 1.7373046875, 45.93800163269, 0, 0, 89.247436523438}, {11472, 8.6669921875, 1.8955078125, 45.953289031982, 0, 0, 89.247436523438}, {1569, 25.496845245361,-8.2728748321533, 39.4296875, 0, 0, 89.994506835938}, {1811, 24.790008544922, 12.985897064209, 44.403787612915, 0, 0, 0}, {1811, 24.793825149536, 12.040700912476, 44.403787612915, 0, 0, 0}, {1811, 24.640426635742, 8.7747077941895, 40.055992126465, 0, 0, 0}, {1811, 24.674139022827, 7.8783135414124, 40.055992126465, 0, 0, 0}, {1811, 24.690132141113, 7.033109664917, 40.055992126465, 0, 0, 0}, {2308, 24.850658416748,-11.329561233521, 39.4296875, 0, 0, 180}, {1714, 24.087694168091,-11.549967765808, 39.4296875, 0, 0, 47.999267578125}, {2167, 22.50089263916,-12.902936935425, 39.4296875, 0, 0, 180.24475097656}, {2171, 21.313259124756,-12.331203460693, 39.4296875, 0, 0, 179.5}, {1714, 20.735082626343,-11.517347335815, 39.4296875, 0, 0, 359.99450683594}, {2161, 19.499044418335,-12.829899787903, 39.4296875, 0, 0, 179.24743652344}, {2964,-2.9261517524719, 11.36141204834, 39.4296875, 0, 0, 42}, {2171, 17.874561309814,-12.331367492676, 39.4296875, 0, 0, 179.48913574219}, {1714, 17.384159088135,-11.410624504089, 39.4296875, 0, 0, 359.98901367188}, {2190, 21.226121902466,-12.76647567749, 40.219264984131, 0, 0, 212.24481201172}, {2190, 24.754346847534,-12.487965583801, 40.219264984131, 0, 0, 190.24475097656}, {2190, 17.60973739624,-12.66236114502, 40.219264984131, 0, 0, 190.24475097656}, {1502, 25.45703125, 9.970703125, 43.812885284424, 0, 0, 270}, {3859, 25.4755859375, 5.8466796875, 46.549921035767, 0, 0, 196.99584960938}, {3859, 25.486328125, 12.5615234375, 46.549921035767, 0, 0, 196.99035644531}, {3859, 23.14638710022, 10.203003883362, 40.831754684448, 0, 0, 287.99011230469}, {3859, 17.918050765991, 10.119235038757, 40.831754684448, 0, 0, 287.99011230469}, {3859, 12.684841156006, 10.032159805298, 40.831754684448, 0, 0, 287.99011230469}, {1569, 16.621646881104, 10.133482933044, 39.4296875, 0, 0, 0.7470703125}, {2180, 12.355867385864, 11.963963508606, 39.4296875, 0, 0, 0.2471923828125}, {1714, 12.85727596283, 12.932424545288, 39.4296875, 0, 0, 0}, {2250, 12.18421459198, 11.978733062744, 40.676656723022, 0, 0, 271.49963378906}, {2190, 13.302311897278, 11.591170310974, 40.231340408325, 0, 0, 204.99938964844}, {2204, 15.15093421936, 12.76876449585, 39.4296875, 0, 0, 271.74682617188}, {2194, 14.938453674316, 12.869654655457, 41.503408432007, 0, 0, 0}, {2204, 15.21821308136, 10.803502082825, 39.4296875, 0, 0, 91.741333007813}, {3859, 15.173049926758, 12.694979667664, 40.831754684448, 0, 0, 198.49548339844}, {14414, 27.796976089478,-1.6132144927979, 36.229516983032, 0, 0, 0}, {2637, 20.970121383667, 3.6264419555664, 39.834428787231, 0, 0, 0}, {2637, 19.023698806763, 3.6263189315796, 39.834428787231, 0, 0, 0}, {2637, 17.095853805542, 3.6267607212067, 39.834428787231, 0, 0, 0}, {1714, 21.083591461182, 4.9590368270874, 39.4296875, 0, 0, 0}, {1714, 19.599321365356, 4.9420609474182, 39.4296875, 0, 0, 0}, {1714, 18.084047317505, 4.9203114509583, 39.4296875, 0, 0, 0}, {1714, 16.611221313477, 4.9168720245361, 39.4296875, 0, 0, 1.5}, {1714, 16.621683120728, 2.4124364852905, 39.4296875, 0, 0, 180.49963378906}, {1714, 18.085639953613, 2.3997132778168, 39.4296875, 0, 0, 180.49438476563}, {1714, 19.606678009033, 2.3485786914825, 39.4296875, 0, 0, 180.49438476563}, {1714, 21.174686431885, 2.3805546760559, 39.4296875, 0, 0, 180.49438476563}, {1714, 15.432366371155, 3.6396882534027, 39.4296875, 0, 0, 90.494384765625}, {1569, 25.499923706055,-5.2776041030884, 39.4296875, 0, 0, 269.48913574219}, {1716, 11.035710334778,-3.8979225158691, 39.4296875, 0, 0, 0}, {1716, 11.016441345215,-2.6573250293732, 39.4296875, 0, 0, 0}, {1716, 11.002861976624,-1.4150018692017, 39.4296875, 0, 0, 0}, {1716, 10.794184684753,-0.3363476395607, 39.4296875, 0, 0, 0}, {1716, 10.077385902405, 0.71491342782974, 39.4296875, 0, 0, 0}, {1209, 3.5338535308838,-5.8809366226196, 39.4296875, 0, 0, 89.75}, {955, 3.4059383869171,-4.6048474311829, 39.783235549927, 0, 0, 91.25} } addEventHandler("onResourceStart", resourceRoot, function() for _,v in ipairs(objects) do local object = createObject(unpack(v)) setElementInterior(object, 24) end end )
  16. I haven't got a clue on how the Sketch Up models are actually saved, but for instance SVG files can be converted with your own system and you can make it work pretty well. You just need to know math enough well to make it possible. If the Sketch Up files are similarly constructed like SVG, then it's very much possible to make it work as long as the person doing it has a good clue on mathematics and in some points they do need shaders as well.
  17. If you want a shader to work on your client, then download a modification from the internet. There are far many other modifications than just ENB to make your gameplay a lot more graphical.
  18. myonlake

    Server Error

    Oh, right. My apologizes. Well, it's up to the developers now to fix
  19. MTA administrators can block servers from the server list. As long as people list them up or report them directly the problem would be fixed.
  20. myonlake

    Server Error

    Which MTA version this is? The path shows 1.0, but it was fixed in r5708. @dev: http://bugs.mtasa.com/view.php?id=6930 http://code.google.com/p/mtasa-blue/sou ... ail?r=5708 http://code.google.com/p/mtasa-blue/sou ... eleter.cpp
  21. No one has no problems with errors. There is always an issue once in a lifetime that you can't fix right away.
×
×
  • Create New...