Jump to content

capitanazop

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by capitanazop

  1. a friend help me and finally its work without errors function levelUp (dataName) local EXP = getElementData(source,"experiencia") if dataName == "experiencia" then if (EXP > 80 and EXP < 180 ) then outputChatBox("Eres Level 2 con " .. tostring(EXP), source) -- output this message together with the money setElementData( source, "level", 2); end
  2. i fix the "False" problem but the error of "compare number with boolean continues. the script work perfect, when you kill a zombie you EXP aument increase 5 and when got to 80 EXP you level Up. but the problem is the many errors. bye
  3. hi i create a level system for a rpg mode and in this gamemode works great! and have the same errors but only in the start of mode and after dont have problems but with my gamemode against all, zombies script, and in another resource dont work and get many errors. function levelUp (dataName) local EXP = getElementData(source,"experience") if (EXP > 80 and EXP < 180) then outputChatBox("you are level 2 whit " .. tostring(EXP), source) -- output this message together with the money setElementData( source, "level", 2); else -- nothing : D end and the errors [11:43:20] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:21] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:22] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:22] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:22] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:22] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:22] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:22] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:23] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:23] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:23] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:24] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:24] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:25] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:25] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:25] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:26] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:27] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:27] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:27] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:27] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean [11:43:27] ERROR: ...dreas/server/mods/deathmatch/resources/level/lvl.lua:32: attempt to compare number with boolean the line 32 is: if (EXP > 80 and EXP < 180) then i have another comand for check my exp and in my rpg gamemode says te exp perfectly but here say only "false" any idea what is the problem? bye and sorry for the english
  4. i think a L4D or Defense mode would be great but i wish more a "special zombies" like l4d or killing floor with chainsaw, more health, explode when dead, frozen you for a little time, fast zombies etc..
  5. thanks man, i see the wiki and the race gamemode and whit this code work perfectly exports.mapmanager:changeGamemode( getResourceFromName('aa') )
  6. hi i create a gamemode and i need a some help to finish the first release. the objective is relly simple, the first in got to the checkpoint win. but i want to star a votemap when some player got to the checkpoint and i look some gamemodes and i couldnt find this. plz if you know a function or code for this post here. bye and sorry AGAIN for my english
  7. thanks man Problem Solved. screen ./mta-server
  8. hi i have a problem with the mta server for debian 5. i write in the putty console ./mta-server & and this happen: ~/mta/ladder$ ./mta-server & [1] 16412 and the server doesnt start but if use ./mta-server without te & work perfectly BUT when close putty the server get down. bye and sorry for my english.
  9. hi i tried to set the hp of ped to 300 but only can 100, exist another way for make this? here my script, work when set the hp to 70 ,10, 5, but not whit values than 100. setTimer( setElementHealth, 1000, 1, pedmision1, 3000 ) Bye and sorry for my english
  10. the problem is doesnt create the markers and the peds .S EDIT: Thanks DAK! Now Work Perfectly !!!!
  11. hi i tried to create a simple mission its work perfectly but when i add a protection timer that doesnt work and dont show any error or warning. here the code. me = getLocalPlayer(); marker1 = createMarker( 2292.7622070313, 2446.4018554688, 10.8203125 ) pedmision1 = createPed ( 120, 2295.7622070313, 2451.4018554688, 10.8203125 ) function pedLoad ( name ) createBlip ( 2292.7622070313, 2446.4018554688, 10.8203125, 52, 0, 0, 0, 255) setElementData( me, "iniciom1", true ); end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) function MarkerHit ( hitPlayer, matchingDimension ) if( getElementData( hitPlayer, "iniciom1" ) == true ) then -- checkea si el jugador puede hacer el jump outputChatBox ( getPlayerName(hitPlayer) .. " ve a pixulandia y mata ese CONCHESUMADRE HIIM!!!" ) createBlip ( 2295.7622070313, 2451.4018554688, 10.8203125, 52, 0, 0, 0, 255) pedmision2 = createPed ( 120, 2291.7622070313, 2451.4018554688, 10.8203125 ) setElementData( hitPlayer, "iniciom1", false ) -- deshabilita el jump setTimer( setElementData, 60000, 1, hitPlayer, "iniciom1", true )-- timer, permite hacer que se pueda volver a saltar en 3 segundos. end end addEventHandler ( "onClientMarkerHit", marker1, MarkerHit ) bye and sorry for the engilsh
  12. i only ask if exist i dont say anything like "make the auto updater plz or something"
  13. yes i see it but they dont restart the server for apply the changes when download the update and dont download automaticly.
  14. hi i find in the interstate69 gamemode the "spring" code for jump whit alt key and its work perfectly here the code. function onCarDownResourceStart(resource) bindKey("lalt", "down", jump) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onCarDownResourceStart) function jump(player) local vehicle = getPlayerOccupiedVehicle(getLocalPlayer()) local velx, vely, velz = getElementVelocity(vehicle) setElementVelocity(vehicle, velx, vely, velz+0.3) end but i have 2 question a 1 problem. how i can create a timer for this? i want to set a timer protection for that command, only 1 time each 3 seconds. and make this for player jump, i tried but y think the function setelementvelocity doesnt work whit player. bye and sorry for my english.
  15. hi i want know if exist a mta server auto updater or if possible automatic update using svn. bye n sorry for my english
  16. local players = getElementsByType ( "player" ) for k,v in ipairs(players) do sorry man i had this code and i thought that are the same (. now works .D thanks man
  17. i tried this but dont work only work in players event i can use spawn player but not whit the random functions we made. bye n sorry forma english
  18. yes i tryed this but only get warnings i need a code for spawn all players in the server but i dont know how i can make this. bye y thx for the reply (.
  19. hi, i have a problem i create a simple deathmatch gamemode whit maps files and its work perfectly, but when the server has no start the gamemode and use /votemap deathmatch and i choice one but the screen still black and use /reconnect and spawn perfectly. how i can fix that? function loadMap(startedMap, player) mapRoot = getResourceRootElement(startedMap) setTimer(joinHandler,1000,1,player) end addEventHandler("onGamemodeMapStart", dm_root, loadMap) function joinHandler() local total_spawns = getElementChildrenCount( getElementByID( "spawns" ) ) local num = math.random( 0, total_spawns - 1 ) local spawn_random = getElementChild ( getElementByID( "spawns" ), num ) local x = getElementData ( spawn_random, "posX" ) local y = getElementData ( spawn_random, "posY" ) local z = getElementData ( spawn_random, "posZ" ) local rot = getElementData ( spawn_random, "rot" ) spawnPlayer(source, x, y, z, rot) setCameraTarget ( source, source ) fadeCamera(source, true) giveWeapon(source, 22, 999) giveWeapon(source, 4, 1) end addEventHandler("onPlayerJoin", dm_root, joinHandler) thx bye (.
  20. a simple survive map with 4 pyramids and a zone with alot of pickups.
  21. when you're outside the 3000x3000 world bounds most melee weapons stop working so that could be the cause aaaa that is the problem, thanks Mr.Hankey (:
  22. why i can kill with the chainsaw in the default map and not in my map? or u gonna say the chainsaw are weak?
  23. well i create a map and the spawns, zombies, pickups and objects work perfectly but i dont now why when i attack zombies with any melee weapon dosent lose hp
×
×
  • Create New...