Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. Kenix

    next map

    userdata wrote and values. function startnextmap() local gamemode = exports.mapmanager:getRunningGamemode() outputChatBox( "gamemode = " .. tostring(gamemode) ) local array = exports.mapmanager:getMapsCompatibleWithGamemode(gamemode) outputChatBox( "array = " .. tostring(array) ) local nextmap = array[math.random(1,#array)] outputChatBox( "nextmap = " .. tostring(nextmap) ) if lastmap ~= nextmap then local thismap = exports.mapmanager:getRunningGamemodeMap() outputChatBox( "MAP = " .. tostring(thismap) ) stopResource(thismap) startResource(nextmap) lastmap = nextmap else outputChatBox( "случайно выбрана все та же текущая карта" ) end end edit :and call setTimer(startnextmap, 6100, 1)
  2. Kenix

    next map

    local thismap = exports.mapmanager:getRunningGamemodeMap() stopResource(thismap)
  3. Kenix

    next map

    here I am slightly corrected the error but still the problem with stop maps and runs it perfectly immediately evident that he was stupidly run maps [2011-01-19 16:55:25] Starting zm-newisland [2011-01-19 16:55:25] start: Resource 'zm-newisland' started [2011-01-19 16:55:44] Starting zm-angar [2011-01-19 16:55:44] start: Resource 'zm-angar' started [2011-01-19 16:55:56] Starting zm-war-island [2011-01-19 16:55:56] start: Resource 'zm-war-island' started function startnextmap() local gamemode = exports.mapmanager:getRunningGamemode() outputChatBox( "gamemode = " .. tostring(gamemode) ) local array = exports.mapmanager:getMapsCompatibleWithGamemode(gamemode) outputChatBox( "array = " .. tostring(array) ) local nextmap = array[math.random(1,#array)] outputChatBox( "nextmap = " .. tostring(nextmap) ) if lastmap ~= nextmap then local curentmap = exports.mapmanager:getRunningGamemodeMap() outputChatBox( "MAP = " .. tostring(curentmap) ) startResource(nextmap) lastmap = nextmap else outputChatBox( "случайно выбрана все та же текущая карта" ) end end help please
  4. you wanted? addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), function( killer ) givePlayerMoney( killer, 1000 ); end )
  5. you forgot to add the line. and add line in your script. ( server side) local root = getRootElement()
  6. lol add your resource in acl name="Admin"> name="resource.your_resource_name" />
  7. new UPDATE 1.0.3 - zombie effect (when you infect a zombie on the screen of the player appears blood and scary sounds) which makes a very interesting fashion. in the near future will show the screen.
  8. Kenix

    next map

    something is not working. error in both cases mapmanager: invalid map specified. function startnextmap() local array = {} local z = 0 for i,v in ipairs(getResources()) do if string.match(getResourceName(v), "zm") then z = z + 1 array[z]=v end end exports.mapmanager:changeGamemodeMap(math.random(1,z)) end exports.mapmanager:changeGamemodeMap()
  9. I have not decided in public or not.
  10. http://www.GameNet.fi | | 100% Zombie Mod 24 / 7! I know this serv but it's pretty old =) and there all sorts of bugs and maps lately not much = (I want to do (try to) perfect zombie mod it than it will be like at 100% Zombie Mod but it's unlikely. edit:So to add all sorts of Fitch Achievement level system statistics skins weapon sounds, etc. I think it's all love
  11. *UPDATE* 1.0.2 Fixed many bugs compared to version 1.0 and added many new Fixes bugs Fixed bug with the damage knives, etc. Fixed bugs with maps new added statistics murder deaths Added Achievement added a lot of maps screens server opening soon when I will correct all bugs EDIT if anyone wants to help fashion please see my thread on the forum and answer them.
  12. Kenix

    next map

    help make that he has started any card please. I used to use it here but it loads the game mode and maps as well I'd like to do to load only the map exports.mapmanager:changeGamemode( getResourceFromName('zombie_mod') )
  13. Kenix

    next map

    already a better job but he swears at stopResource Bad argument @ 'stopResource' acl name="Admin"> name="resource.zombie_mod" />name="Admin"> name="function.stopResource" access="true" /> name="function.startResource" access="true" />
  14. Kenix

    next map

    not working need admin rights [2011-01-15 22:41:22] Access denied @ 'stopResource' [2011-01-15 22:41:22] Access denied @ 'startResource' edit : mapmanager running
  15. Kenix

    next map

    I do not for a race game mode lol
  16. Kenix

    next map

    Here's the script does not work help me fix it. local lastmap = nil function startnextmap() local array = {} local z = 0 for i,v in ipairs(getResources()) do if string.match(getResourceName(v), "zm") then z = z + 1 array[z]=v end end local nextmap = array[math.random(1,z)] if lastmap ~= nextmap then stopResource(nextmap) startResource(getResourceFromName(getResourceName(nextmap))) lastmap = nextmap end end
  17. and is obtained here it should also be on the client side: getGameSpeed setPedHeadless setPedOnFire I simply exist that did not work.
  18. Kenix

    bug or not?

    ok thanks, I hope that this bug fix in the future.
  19. not a zombie bots and players
  20. here's some fixed but it still does not work. function zombieclasses ( zombie ) if not zombie then return end -- если не указано значение - выход local skinID = getElementModel(zombie) if not skinID then return end -- если не удалось узнать скин - выход if table.have( bronezombies, skinID ) then setPedStat ( zombie, 24, 2000 ) -- много хп getGameSpeed ( zombie, 0.7 ) -- побочные действия бег медленнее setGravity ( zombie, 0.009) -- побочные действия меньше прыжки elseif table.have( noheadzombies, skinID ) then setPedHeadless( zombie, true ) elseif table.have( speedzombies, skinID ) then getGameSpeed ( zombie, 1.3 ) -- быстрее бег setPedStat ( zombie, 24, 500 ) -- но меньше жизек elseif table.have( firezombies, skinID ) then setPedOnFire ( zombie, true ) -- зомби в огне end end
  21. Kenix

    bug or not?

    Yes I have almost all cards are in the chapels of Sa and there is not works for melee weapons thank you was directed but why not work?
  22. Kenix

    bug or not?

    so on my server has a bug but I do not understand what it is connected so the bug is that sometimes a knife or other objects in the melee do not do damage to another player from another team to what it can be linked? added: but everything else works fine weapon and does damage.
×
×
  • Create New...