Jump to content

rbb27

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by rbb27

  1. Work! Thank all for help me.
  2. i Try That but still error =( function zkill() for i,v in pairs(getElementsByType("player")) do local playerTeam = getPlayerTeam(v) if ( playerTeam == Army) then setAccountData (v,"zombieKills",zombieKills+2) givePlayerMoney(v, math.random( 80, 110 ) ) elseif ( playerTeam == Scientific) then setAccountData (v,"zombieKills",zombieKills-1) outputChatBox ( "You Don't Kill Zombies! -1 EXP", v, 0, 0, 255 ) else outputChatBox ( "Error", v, 0, 0, 255 ) end end end addEventHandler("onZombieWasted", getRootElement(), zkill)
  3. Nothing, Just One Error on one other script.
  4. i have past the bad code. thank you anyway, but i have still error.
  5. Hi. When You kill on zombie you should win your reward or you malus depending on your team but i have all the time error =( Can you show me my error? addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), function( killer ) local playerTeam = getPlayerTeam ( killer ) if ( playerTeam == Army) then setAccountData (killer,"zombieKills",zombieKills+2) givePlayerMoney( killer, math.random( 80, 110 ) ) elseif ( playerTeam == Scientific) then setAccountData (killer,"zombieKills",zombieKills-1) outputChatBox ( "You Don't Kill Zombies! -1 EXP", killer, 0, 0, 255 ) else outputChatBox ( "Error", killer, 0, 0, 255 ) end end ) Thank,Rbb27
  6. Hi. I Update my server to version 1.1. And now the zombie haven't intelligence. They attack and follow not players. It's my server or it's one general bug? Thank, Rbb27
  7. i can (maybe) help you send me your msn for speak (pm).
  8. Thank, Running. And sorry for my bad english.
  9. Hi. On my server, i use one level system(Zombie Apocalypse by benxamix2) and i wana see the value on the scoreboard I try modify scoremoney by prascic but the script don't running. The level is in database : "rank" << getAccountData(player,"rank") >> Server Side Script : addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","Level") end ) and client side : local starttick, currenttick local player = getLocalPlayer() addEventHandler("onClientRender",getRootElement(), function() if not starttick then starttick = getTickCount() end currenttick = getTickCount() if currenttick - starttick >= 1000 then local mylevel = getAccountData(player,"rank") setElementData(player,"Level",mylevel ) starttick = getTickCount() end end ) function updateMoney() for k, v in ipairs(getElementsByType('player')) do local level = getAccountData(player,"rank")(v) setElementData(v,"Level",level ) end end setTimer(updateMoney, 1000000, 0) Can You Help Me for that? Thank, Rbb27
×
×
  • Create New...