Jump to content

0xCiBeR

MTA Team
  • Posts

    1,673
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by 0xCiBeR

  1. Well you have the setElementData Ok, You have to trigger with an export or something the function that makes the zombies target a ped and ignore if it's a zombie. Not sure what function it is but look into the Zombie resource Files. What you are going to acomplish with this is to make near zombies re-scan for NoN-Zombie peds and that will make them stop atacking you.
  2. 0xCiBeR

    dx calculations

    Wouldn't That make the Y pos +10 on every frame? EDIT: My Bad
  3. Use: setElementData(localPlayer,"zombie",true) And update zombies target.
  4. Do you have any other resources Running such as Play or Similar?
  5. You had a dot at the end of createVehicle. addEvent("VehicleSpawn",true) addEventHandler("VehicleSpawn",root, function (TheVehicleName,x,y,z) marker = createMarker(x+1,y,z-1,"cylinder",1.5,0,255,0,255) addEventHandler("onMarkerHit",marker, function (hitElement) if (source == marker) then if getElementType( hitElement ) == 'player' then RaceVehicle = createVehicle (tonumber(TheVehicleName), x+5,y,z) hitElement = hitElement setTimer(warpPedIntoVehicle,50,1,hitElement ,RaceVehicle) end end end) end )
  6. Please don't doble post. If anyone's intrested they will contact you.
  7. That's not going to work. Please read the event parameters before posting: int totalAmmo, element killer, int killerWeapon, int bodypart, bool stealth Should be: Sitios = { {459.77969360352, -1968.7708740234, 8.6134691238403}, {-2533.9658203125, -1618.890625, 526.56469726563}, } function respawn () local x,y,z = unpack(Sitios[math.random(#Sitios)]) nardis = spawnPlayer ( source, x, y, z, 0, math.random(0, 200) ) fadeCamera(source, true) setCameraTarget(source, source) end addEventHandler("onPlayerWasted", getRootElement(), respawn)
  8. Maybe this will help? viewtopic.php?f=91&t=52867&start=30
  9. Concuerdo con @diego . Añadido: Introducción a Lua Página Principal
  10. giveWeapon()--The ID for Night Vision is 44
  11. 0xCiBeR

    fuego infinito

    Puedes usar un Timer para re-crearlo aunque probablemente afecte el rendimiento del Cliente. Pruebalo y nos cuentas. Cuando arreglen el FireSync, probablemente agreguen una variable que sea unlimited, que provocara que el fuego quede encendido hasta que sea apagado. Pero hasta entonces, tu mejor solución es un timer bien calculado.
  12. I think he means creating 3 tanks, and each one with a diferent Texture. If that's the case, it's not posible. Maybe using Shaders, but don't really know.
  13. 0xCiBeR

    fuego infinito

    Tenes dos posibilidades: createFire --O fxAddTankFire Saludos.
  14. You want to fade the entire screen or just fade in your image? In the last case, you have two options: If it's linear, use: onClientRender And calculate every frame the new pos setting a max value. Else: interpolateBetween And if you mean the alpha(transparincy) use: onClientRender guiSetAlpha Or a timer, instead of onClientRender.
  15. Probably you have to loop the table. Not sure, but post your code.
  16. No sure if it calculates that, but if it doesn't then use: Use: guiGetScreenSize() And use math equations.
  17. Don't understand you, Did it get Fixed?
  18. Yes, script for that module must be Server-Side. You can fix it using triggers to send and recive the data: triggerClientEvent triggerServerEvent
  19. Well if you don't want to use MySQL, you can use account functions: getPlayerAccount setAccountData getAccountData Or XML.
  20. Sitios = { [1] = (source, 459.77969360352, -1968.7708740234, 8.6134691238403, 0, 71), [2] = (source, -2533.9658203125, -1618.890625, 526.56469726563, 0, 71) } function respawn () resultado = math.random (1, 2) s, x, y, z, r, s = unpack (Sitios[resultado]) nardis = spawnPlayer ( source, x, y, z, 0, math.random(0, 200) ) fadeCamera(source, true) setCameraTarget(source, source) end addEventHandler("onPlayerWasted", getRootElement(), respawn)
  21. Maybe this (? : https://wiki.multitheftauto.com/wiki/Shader_examples#Ped_shell
  22. Busca la función y el bind que lo activa y a la función agregale el evento onClientResourceStart
×
×
  • Create New...