Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. https://wiki.multitheftauto.com/wiki/Gui ... rogressBar or https://wiki.multitheftauto.com/wiki/DxDrawRectangle And update it in event onClientRender.
  2. You added resource to acl group admin?
  3. Kenix

    CLEO

    Just learn https://wiki.multitheftauto.com/wiki/Scr ... troduction viewtopic.php?f=148&t=40809
  4. Кстати \n не работает в этой ситуации local sText = [[ Text1 \n Text2 ]] print( sText ) -->Text1 \n Text2 print">print">print( sText ) -->Text1 \n Text2 P.S Опять баги с синтаксисом.
  5. Не легче сделать такое? local sText = [[ ... ... ]] ИМХО это лучше и не надо xml'ы юзать.
  6. tonumber">tonumber pairs">pairs tostring">tostring
  7. Kenix

    Random Spawn

    No problem. It's not function, it's event. https://wiki.multitheftauto.com/wiki/OnVehicleStartEnter https://wiki.multitheftauto.com/wiki/OnVehicleEnter
  8. Kenix

    Random Spawn

    It working, i test it now. Also i forgot say problem. You problem in 28 line setTimer( randomSpawn, 3000, 1, source ) You forgot call table. setTimer( randomSpawn, 3000, 1, source,randomSpawnTable ) Correct. Full correct code local randomSpawnTable = { { -2818.3391, 1134.4768, 26.1129, 179.2400 }, { 2021.3114, 1344.1099, 10.8203, 269.5800 }, { 2221.3726, 1838.4792, 10.8203, 90.3700 } } function randomSpawn( thePlayer, randomSpawnTable ) local random = math.random( 1, #randomSpawnTable ) spawnPlayer( thePlayer, randomSpawnTable[random][1], randomSpawnTable[random][2], randomSpawnTable[random][3], randomSpawnTable[random][4] ) end function onPlayerJoin( ) fadeCamera( source, true ) setCameraTarget( source, source ) randomSpawn( source, randomSpawnTable ) end addEventHandler( "onPlayerJoin",root, onPlayerJoin ) function onPlayerDeath( ) fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer( randomSpawn, 3000, 1, source,randomSpawnTable ) setTimer( fadeCamera, 2500, 1, source, true, 0.5 ) end addEventHandler( "onPlayerWasted", root, onPlayerDeath )
  9. Kenix

    Random Spawn

    local randomSpawnTable = { { -2818.3391, 1134.4768, 26.1129, 179.2400 }, { 2021.3114, 1344.1099, 10.8203, 269.5800 }, { 2221.3726, 1838.4792, 10.8203, 90.3700 } } function randomSpawn( thePlayer, randomSpawnTable ) local random = math.random( 1, #randomSpawnTable ) spawnPlayer( thePlayer, randomSpawnTable[random][1], randomSpawnTable[random][2], randomSpawnTable[random][3], randomSpawnTable[random][4] ) end function onPlayerJoin( ) fadeCamera( source, true ) setCameraTarget( source, source ) randomSpawn( source, randomSpawnTable ) end addEventHandler( "onPlayerJoin",root, onPlayerJoin ) function onPlayerDeath( ) fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer( randomSpawn, 3000, 1, source,randomSpawnTable ) setTimer( fadeCamera, 2500, 1, source, true, 0.5 ) end addEventHandler( "onPlayerWasted", root, onPlayerDeath )
  10. I think you use freeroam resource and in freeroam have custom chat messages. So for disable: Open freeroam->Open file fr_server.lua->find event onPlayerChat->delete event handler ->done.
  11. Попробуй toggleControl и отрубай кнопки в цикле.
  12. Korangex or Orangenix
  13. [ code ] ipairs [ lua ] ipairs">ipairs [ code=lua ] ipairs">ipairs
  14. Server side addCommandHandler ( 'brb', function( uPlayer ) outputChatBox( getPlayerName( uPlayer ) .. ' Says Bye Bye to Simon', root, 255, 255, 255 ) end )
  15. function setFriendlyFireOn ( ) -- For each team, for index, theTeam in ipairs ( getElementsByType("team") ) do -- if friendly fire is off, if not getTeamFriendlyFire ( theTeam ) then -- switch it on. setTeamFriendlyFire ( theTeam, true ) end end end -- Add console command 'setFF' addCommandHandler ( "setFF", setFriendlyFireOn ) Show meta.xml too. for index, theTeam in ipairs">ipairs ( getElementsByType("team") ) do Forum syntax bug
  16. it's server side script.
  17. https://wiki.multitheftauto.com/wiki/AddCommandHandler https://wiki.multitheftauto.com/wiki/OutputChatBox https://wiki.multitheftauto.com/wiki/Scr ... troduction
  18. Kenix

    Custom TXD/DFF

    Can you show full meta.xml?
  19. Ransom Add this, if possible viewtopic.php?f=108&t=41111
  20. New version 1.2 Added dialog box with save folder. Fixed most bugs. Download Download Virus total First post updated.
  21. It's just create meta.xml and nothing else. I not understand, what you mean.
×
×
  • Create New...