Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. No podes, el gang system que usa el DayZ es el mio, que esta compilado.
  2. You need to use the following functions: Functions: createObject -- To create the gate object. moveObject -- To move the gate. getElementModel -- To check if the skin is 287. createColTube -- To create a colshape so it opens the gate when you hit it. Event: onColShapeHit
  3. Proba usando esta funcion: https://wiki.multitheftauto.com/wiki/SetLowLODElement Y despues: https://wiki.multitheftauto.com/wiki/En ... ODDistance
  4. So, you attached the event to the grid list?
  5. What event are you using?
  6. vehs = guiCreateComboBox(495,400,207,30,"Select a vehicle",false,staffWindow) 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 comboitem = guiComboBoxAddItem(vehs, getVehicleNameFromModel(v)) end local x, y = guiGetSize ( vehs, false ) guiSetSize ( vehs, x, ( y + 20 * #vehicleIDS ), false )
  7. Does the combo box have enough height to contain all these items?
  8. Usa el evento onClientGUIClick con las siguientes funciones: guiGetText triggerServerEvent getPlayerFromName outputChatBox
  9. So, he wrote a 775 lines client side script which also includes server side events, but never wrote the server side? this sounds like you stole this code.
  10. You could search the forums, it has been done before.
  11. Castillo

    god mode

    That code should work.
  12. "rw" is not defined at the function executed by "onClientPlayerQuit". You'll have to either make a table which will store the grid list rows using the player element as index, or loop every single row and check if the name matches the player that quited.
  13. Castillo

    Music

    What do you mean?
  14. They are part of the vehicle textures as far as I know.
  15. "thePlayer" is not defined anywhere.
  16. SmartBoy and Sensacion are two different persons.
  17. Compiling is still optional, you aren't forced to compile them, you can leave it uncompiled. But if you mean that using the MTA compiler should be optional, then you're wrong, after seeing that your server stole at least one of our resources ( the HUD ), I realized that using the MTA compiler can't be that bad after all.
  18. Castillo

    functions

    getRandomPlayer setTimer
  19. addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function ( _, killer ) if ( getElementType ( killer ) == "player" ) then givePlayerMoney ( killer, 2000 ) end end )
  20. The script I posted works perfectly fine, I tested it on my local server.
  21. Works fine here. addEventHandler ( "onPedWasted", root, function ( _, killer ) if ( getElementType ( killer ) == "player" ) then givePlayerMoney ( killer, 2000 ) end end )
  22. It's quite obvious what he's trying to do: when a player kills a ped, give the player money.
×
×
  • Create New...