Jump to content

Tomas

Members
  • Posts

    2,530
  • Joined

  • Last visited

Everything posted by Tomas

  1. ... function autoUnmute ( player ) if ( isElement ( player ) and isPlayerMuted ( player ) ) then setPlayerMuted ( player, false ) outputChatBox (""..getPlayerName ( player ).." Fue Desmuteado (Fin del Mute)",getRootElement(), 0, 255, 9,true ) end end
  2. Debe ser ese el problema, agrega un "or" a la variable needengine para solucionarlo.
  3. Me disculpo por re-abrir un tema de hace casi 1 año, ahora en la versión 1.4 a pesar de que lo uso en su idioma nativo en otras PCs tengo el MTA 1.4 en español pero en el actual aún hay cosas que están mal redactadas, aunque otro problema es que algunos strings eran muy dificil de traducir porque no se sabía el contexto, un ejemplo: "Disconnect of the server" (Desconectarse del servidor), este mensaje aparece tanto en el menú de inicio y cuando un servidor se cae-apaga, claro, como en el inglés muchas cosas quieren decir lo mismo cuando lo traducieron seguramente no sabían en que contexto se iba a usar, he encontrado también muchos errores ortográficos, tengo una pregunta: ¿Se podrán arreglar esas cosas antes de la 1.4.1? Saludos, Tomás.
  4. Ten, para lo del vehículo como no tengo acceso al script en el cual el admin spawnea el vehículo se me ocurrió hacer que cuando el vehículo sea disparado/chocado si el admin está conduciendo automáticamente sea indestructible. Para que se te bindee la tecla para subir debes loguearte como admin con el resoruce encendido. Con respecto a lo de ir para adelante no se me ocurre nada, debido a que las posiciones en MTA se basan en el 3D y no se me ocurre como definir para adelante, en el primer test funcionó pero todo depende la rotación que tengas. function onAdminPressToJump(admin) if isPedInVehicle(admin) then local vehicle = getPedOccupiedVehicle(admin) local x,y,z = getElementPosition(vehicle) setElementPosition(vehicle,x,y,z+5) end end function onAdminPressToDrive(admin) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(admin)), aclGetGroup ( "Admin" ) ) then if isPedInVehicle(admin) then local vehicle = getPedOccupiedVehicle(admin) local x,y,z = getElementPosition(vehicle) setElementPosition(vehicle,x+2,y+2,z) end end end function onAdminLogin() if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) then bindKey(source,"F4","down",onAdminPressToJump) bindKey(source,"F3","down",onAdminPressToDrive) end end addEventHandler("onPlayerLogin",getRootElement(),onAdminLogin) function onVehicleOfAdminIsDamaged() local driver = getPedOccupiedVehicle(source) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(driver)), aclGetGroup ( "Admin" ) ) then setVehicleDamageProof(source,true) setElementHealth(source,1000) end end addEventHandler("onVehicleDamage",getRootElement(),onVehicleOfAdminIsDamaged)
  5. si, eso ya lo solucione. Pero mi duda persiste en como colocar animaciones nuevas No lo creo.
  6. Llego a casa en 2 horas y te lo arreglo.
  7. Sí, Sergioks juega/jugaba SX no se si llegó a verlo, ando con la PC un poco dañada y muy ocupado últimamente pero intentaré grabarlo ADD: En otro server en el que juego también se puede hacer, pero la animación es como si levantara una caja.
  8. Si se puede, en SX lo usan cuando abren el teléfono, no tengo idea como. Y la animación de arrestado está en COP.
  9. Ten, está testeado: local gRoot = getRootElement() local g_Root = gRoot local gMe = getLocalPlayer() local gResourceRoot = getResourceRootElement(getThisResource()) local theRamps = {} addEvent ( "vehicleramps_SpawnRamp", true ) addEventHandler ( "vehicleramps_SpawnRamp", gRoot, function ( mode, returnedData ) --outputChatBox ( "A RAMP WAS MADE BY " .. getPlayerName(source) ) if ( theRamps[source] ) then --outputChatBox ( "Destroying the ramps table" ) destroyElement(theRamps[source]) theRamps[source] = false end local parentUnit = createElement("myRamps" .. getPlayerID(source)) theRamps[source] = parentUnit if ( mode == "1" ) then if ( #returnedData == 6 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], returnedData[4], returnedData[5], returnedData[6], 1632 ) end elseif ( mode == "1s" ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, 0, 1632 ) spawnRamp ( source, returnedData[4], returnedData[5], returnedData[6], 0, 0, 90, 1632 ) spawnRamp ( source, returnedData[7], returnedData[8], returnedData[9], 0, 0, 180, 1632 ) spawnRamp ( source, returnedData[10], returnedData[11], returnedData[12], 0, 0, 270, 1632 ) elseif ( mode == "2" ) then if ( #returnedData == 9 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) spawnRamp ( source, returnedData[4], returnedData[5], returnedData[6], returnedData[7], returnedData[8], returnedData[9], 1632 ) end elseif ( mode == "3" ) then if ( #returnedData == 9 ) then local thisRamp = spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) local rx, ry, rz = getObjectRotation ( thisRamp ) spawnRamp ( source, returnedData[4], returnedData[5], returnedData[6], rx + 22, returnedData[8], returnedData[9], 1632 ) end elseif ( mode == "5" ) then if ( #returnedData == 6 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], 13592 ) end elseif ( mode == "6" ) then if ( #returnedData == 6 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], 13641 ) end elseif ( mode == "custom" ) then if ( #returnedData == 7 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], returnedData[7] ) end end end ) addEventHandler ( "onClientResourceStart", gResourceRoot, function(name) --outputChatBox ( "Client Script Started" ) outputChatBox ( "Client Script Started" ) bindKey ( "1", "down", workOutRamps, 1 ) bindKey ( "2", "down", workOutRamps, 2 ) bindKey ( "3", "down", workOutRamps, 3 ) bindKey ( "4", "down", workOutRamps, 5 ) bindKey ( "5", "down", workOutRamps, 6 ) end) function workOutRamps(mode) local playerVehicle = getPlayerOccupiedVehicle(getLocalPlayer()) if ( playerVehicle ) then local PV = getVehicleController(playerVehicle) if ( PV ~= getLocalPlayer() ) then outputChatBox ( "Your not the driver!" ) return end if ( theRamps[gMe] ) then --outputChatBox ( "Destroying the ramps table" ) destroyElement(theRamps[gMe]) theRamps[gMe] = false end local parentUnit = createElement("myRamps" .. getPlayerID(gMe)) theRamps[gMe] = parentUnit local distance = 20 local returnedData = {} local vehX, vehY, vZ = getElementPosition(playerVehicle) local rotX, rotY, rotZ = getVehicleRotation(playerVehicle) if ( mode == "1" ) then if ( getKeyState("lshift") ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+130)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) local ramp2X, ramp2Y = ramp1X+5.5, ramp1Y --vehX + distance*math.cos(math.rad(rotZ+74.5)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp2Z = ramp1Z --getGroundForCoords(ramp2X, ramp2Y, vZ) local ramp3X, ramp3Y = ramp1X, ramp1Y+5.5 --vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) + 5.5 local ramp3Z = ramp1Z --getGroundForCoords(ramp3X, ramp3Y, vZ) local ramp4X, ramp4Y = ramp1X-5.5, ramp1Y --vehX + distance*math.cos(math.rad(rotZ+90)) - 5.5, vehY + distance*math.sin(math.rad(rotZ+90)) local ramp4Z = ramp1Z --getGroundForCoords(ramp4X, ramp4Y, vZ) ramp1Y = ramp1Y - 5.5 returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = ramp2X returnedData[5] = ramp2Y returnedData[6] = ramp2Z + 1 returnedData[7] = ramp3X returnedData[8] = ramp3Y returnedData[9] = ramp3Z + 1 returnedData[10] = ramp4X returnedData[11] = ramp4Y returnedData[12] = ramp4Z + 1 spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], 0, 0, 0, 1632 ) spawnRamp ( gMe, returnedData[4], returnedData[5], returnedData[6], 0, 0, 90, 1632 ) spawnRamp ( gMe, returnedData[7], returnedData[8], returnedData[9], 0, 0, 180, 1632 ) spawnRamp ( gMe, returnedData[10], returnedData[11], returnedData[12], 0, 0, 270, 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode .. "s", returnedData ) setElementPosition ( playerVehicle, ramp1X, ramp1Y, ramp1Z+3 ) setVehicleRotation ( playerVehicle, 0, 0, 0 ) setElementVelocity ( playerVehicle, 0, 0, 0 ) setElementVelocity ( playerVehicle, 0, 0, 0 ) else local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = rotX returnedData[5] = rotY returnedData[6] = rotZ spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], returnedData[4], returnedData[5], returnedData[6], 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) end elseif ( mode == "2" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+83)), vehY + distance*math.sin(math.rad(rotZ+83)) local ramp2X, ramp2Y = vehX + distance*math.cos(math.rad(rotZ+95)), vehY + distance*math.sin(math.rad(rotZ+95)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) local ramp2Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = ramp2X returnedData[5] = ramp2Y returnedData[6] = ramp2Z + 1 returnedData[7] = rotX returnedData[8] = rotY returnedData[9] = rotZ spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) spawnRamp ( gMe, returnedData[4], returnedData[5], returnedData[6], returnedData[7], returnedData[8], returnedData[9], 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) elseif ( mode == "3" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp2X, ramp2Y = vehX + (distance+5)*math.cos(math.rad(rotZ+90)), vehY + (distance+5)*math.sin(math.rad(rotZ+90)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) local ramp2Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = ramp2X returnedData[5] = ramp2Y returnedData[6] = ramp2Z + 4.5 returnedData[7] = rotX returnedData[8] = rotY returnedData[9] = rotZ local thisRamp = spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) local rx, ry, rz = getObjectRotation ( thisRamp ) spawnRamp ( gMe, returnedData[4], returnedData[5], returnedData[6], rx + 22, returnedData[8], returnedData[9], 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) elseif ( mode == "5" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+115)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 9 returnedData[4] = rotX returnedData[5] = rotY returnedData[6] = rotZ - 90 spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], 13592 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) elseif ( mode == "6" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce =
  10. Es muy fácil crearlo, pero quieres hacerlo para un ACL en especial o para todos los ACL? Es decir, que todos puedan chatear entre los del mismo ACL? Acá te dejo uno para los de un ACL en especial: function ACLChat(player,_,...) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(player)), aclGetGroup ( "ACLName" ) ) then local mensaje= table.concat({...}, " ") local name = getPlayerName(player) local r,g,b = getPlayerNametagColor(player) for i,v in pairs(getElementsByType("player")) do if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(v)), aclGetGroup ( "ACLName" ) ) then outputChatBox("[ACLChat]: "..name..": "..mensaje,v,r,g,b) end end end end addCommandHandler("aclchat",ACLChat) addEventHandler("onPlayerLogin", getRootElement(), function() if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "ACLName" ) ) then bindKey(source, "u", "down", "chatbox", "aclchat") end end )
  11. Ah ok, pero te funcionó?
  12. Qué le editaste? El original no era así ._. function onPlayerWasted(_,killer,weapon) if killer and weapon namekiller = getPlayerName(killer) namemuerto = getPlayerName(source) weaponn = tostring(weapon) triggerClientEvent("onRollMessageStart", getRootElement(), (namekiller.." mato a: "..namemuerto.." con "..weaponn, 255, 0, 0) end end addEventHandler("onPlayerWasted",getRootElement(),onPlayerWasted)
  13. Tienes editado el freeroam? Si la respuesta es no, descarga la última versión aquí --> https://community.multitheftauto.com/index.php?p= ... ails&id=43
  14. Tomas

    The Best OS

    Ubuntu 4ever <3
  15. Stolen script, bad luck TIGREBLANCO.
  16. Intenta con esto: g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_PlayerData = {} g_VehicleData = {} local chatTime = {} local lastChatMessage = {} g_ArmedVehicles = { [425] = true, [447] = true, [520] = true, [430] = true, [464] = true, [432] = true } g_Trailers = { [606] = true, [607] = true, [610] = true, [590] = true, [569] = true, [611] = true, [584] = true, [608] = true, [435] = true, [450] = true, [591] = true } g_RPCFunctions = { addPedClothes = { option = 'clothes', descr = 'Modifying clothes' }, addVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, fadeVehiclePassengersCamera = true, fixVehicle = { option = 'repair', descr = 'Repairing vehicles' }, giveMeVehicles = { option = 'createvehicle', descr = 'Creating vehicles' }, giveMeWeapon = { option = 'weapons.enabled', descr = 'Getting weapons' }, givePedJetPack = { option = 'jetpack', descr = 'Getting a jetpack' }, killPed = { option = 'kill', descr = 'Killing yourself' }, removePedClothes = { option = 'clothes', descr = 'Modifying clothes' }, removePedFromVehicle = true, removePedJetPack = { option = 'jetpack', descr = 'Removing a jetpack' }, removeVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, setElementAlpha = { option = 'alpha', descr = 'Changing your alpha' }, setElementPosition = true, setElementInterior = true, setMyGameSpeed = { option = 'gamespeed.enabled', descr = 'Setting game speed' }, setPedAnimation = { option = 'anim', descr = 'Setting an animation' }, setPedFightingStyle = { option = 'setstyle', descr = 'Setting fighting style' }, setPedGravity = { option = 'gravity.enabled', descr = 'Setting gravity' }, setPedStat = { option = 'stats', descr = 'Changing stats' }, setTime = { option = 'time.set', descr = 'Changing time' }, setTimeFrozen = { option = 'time.freeze', descr = 'Freezing time' }, setVehicleColor = true, setVehicleHeadLightColor = true, setVehicleOverrideLights = { option = 'lights', descr = 'Forcing lights' }, setVehiclePaintjob = { option = 'paintjob', descr = 'Applying paintjobs' }, setVehicleRotation = true, setWeather = { option = 'weather', descr = 'Setting weather' }, spawnMe = false, warpMe = { option = 'warp', descr = 'Warping' } } g_OptionDefaults = { alpha = true, anim = true, clothes = true, createvehicle = true, gamespeed = { enabled = true, min = 0.0, max = 3 }, gravity = { enabled = true, min = 0, max = 0.1 }, jetpack = true, kill = true, lights = true, paintjob = true, repair = true, setskin = true, setstyle = true, spawnmaponstart = true, spawnmapondeath = true, stats = true, time = { set = true, freeze = true }, upgrades = true, warp = true, weapons = { enabled = true, vehiclesenabled = true, disallowed = {} }, weather = true, welcometextonstart = true, vehicles = { maxidletime = 60000, idleexplode = true, maxperplayer = 2, disallowed = {} } } function getOption(optionName) local option = get(optionName:gsub('%.', '/')) if option then if option == 'true' then option = true elseif option == 'false' then option = false end return option end option = g_OptionDefaults for i,part in ipairs(optionName:split('.')) do option = option[part] end return option end addEventHandler('onResourceStart', g_ResRoot, function() table.each(getElementsByType('player'), joinHandler) end ) function joinHandler(player) if not player then player = source end local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) setPlayerNametagColor(player, r, g, b) g_PlayerData[player] = { vehicles = {} } g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) if g_FrozenTime then clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather) end if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', player, 0, 255, 0) outputChatBox('Press F1 to show/hide controls', player, 0, 255, 0) end end addEventHandler('onPlayerJoin', g_Root, joinHandler) addEvent('onLoadedAtClient', true) addEventHandler('onLoadedAtClient', g_ResRoot, function(player) if getOption('spawnmaponstart') and isPedDead(player) then clientCall(player, 'showWelcomeMap') end end, false ) addEventHandler('onPlayerWasted', g_Root, function() if not getOption('spawnmapondeath') then return end local player = source setTimer( function() if isPedDead(player) then clientCall(player, 'showMap') end end, 2000, 1 ) end ) addEvent('onClothesInit', true) addEventHandler('onClothesInit', g_Root, function() local result = {} local texture, model -- get all clothes result.allClothes = {} local typeGroup, index for type=0,17 do typeGroup = {'group', type = type, name = getClothesTypeName(type), children = {}} table.insert(result.allClothes, typeGroup) index = 0 texture, model = getClothesByTypeIndex(type, index) while texture do table.insert(typeGroup.children, {id = index, texture = texture, model = model}) index = index + 1 texture, model = getClothesByTypeIndex(type, index) end end -- get current player clothes { type = {texture=texture, model=model} } result.playerClothes = {} for type=0,17 do texture, model = getPedClothes(source, type) if texture then result.playerClothes[type] = {texture = texture, model = model} end end triggerClientEvent(source, 'onClientClothesInit', source, result) end ) addEvent('onPlayerGravInit', true) addEventHandler('onPlayerGravInit', g_Root, function() triggerClientEvent('onClientPlayerGravInit', source, getPedGravity(source)) end ) function warpMe(targetPlayer) if isPedDead(source) then spawnMe() end local vehicle = getPedOccupiedVehicle(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox('No free seats left in ' .. getPlayerName(targetPlayer) .. '\'s vehicle.', source, 255, 0, 0) end local interior = getElementInterior(targetPlayer)
  17. Si no nos das el código dudo que podramos hacer algo, getElementDimension deberías usar.
  18. Debería funcionar, pero... ¿ no quedaría un poco estúpido que diga [VIP-Pedro] Usted ha usado el Kit de Vip ? Si lo pusieras en global debería decir [VIP-Pedro] Ha usado el kit de Vip, es una opinión nada más.
  19. Tomas

    Como seria esto?

    Edita la función RanSpawn_Z por esto: addEvent( "onZombieSpawn", true ) function RanSpawn_Z ( gx, gy, gz, rot) local safezone = 0 local allradars = getElementsByType("radararea") for theKey,theradar in ipairs(allradars) do if getElementData(theradar, "zombieProof") == true then if isInsideRadarArea ( theradar, gx, gy ) then safezone = 1 end end end if safezone == 0 then if table.getn ( everyZombie ) < newZombieLimit then if not rot then rot = math.random (1,359) end randomZskin = math.random ( 1, table.getn ( ZombiePedSkins ) ) local zomb = createPed( tonumber( ZombiePedSkins[randomZskin] ), gx, gy, gz ) if zomb ~= false then setElementData ( zomb, "zombie", true ) setElementDimension(zomb,4) table.insert( everyZombie, zomb ) setTimer ( function (zomb, rot) if ( isElement ( zomb ) ) then setPedRotation ( zomb, rot ) end end, 500, 1, zomb, rot ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setPedAnimation ( zomb, "ped", chaseanim, -1, true, true, true ) end end, 1000, 1, zomb ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setElementData ( zomb, "status", "idle" ) end end, 2000, 1, zomb ) triggerClientEvent ( "Zomb_STFU", getRootElement(), zomb ) end end end end addEventHandler( "onZombieSpawn", getRootElement(), RanSpawn_Z )
  20. Que raro, has agregado algo que elimine los blips?
  21. En la wiki de MTA tienes lo necesario para aprender a hacerlo, con esfuerzo y dedicación lo lograrás.
  22. function createBlip() for i,v in ipairs(getElementsByType("player")) do x,y,z = getElementPosition(v) createBlip(x,y,z,0,2,255,0,0,255,0,9999,getRootElement()) end end
×
×
  • Create New...