Jump to content

RekZ

Members
  • Posts

    329
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by RekZ

  1. RekZ

    onPlayerWeaponFire

    I have a custom damage system for weapons and the event dont detect any element whit sniper so if no exist element player cant be hit by other players because the function i think dont work whit this weapon.. this is the problem. onPlayerWeaponFire PD : You only read one comment no the post :v
  2. RekZ

    onPlayerWeaponFire

    You only comment the post and dont see what is the problem right... the problem is the function not the gamemode ._. ?
  3. RekZ

    onPlayerWeaponFire

    Sorry for the double post, but what i can do >-< the players in my server cant use the sniper now
  4. RekZ

    onPlayerWeaponFire

    if i dont use isElement the element dont receive the damage whit sniper is the same dont detect the element >-<
  5. RekZ

    onPlayerWeaponFire

    false it seems that there is no element, but whit others weapons return true
  6. function onPlayerWeaponFire (weapon, endX, endY, endZ, hitElement, startX, startY, startZ) if isElement(hitElement) and getElementType(hitElement) == "player" then if weapon == 34 then outputChatBox( "* Damage" ) end end end addEventHandler("onPlayerWeaponFire", getRootElement(), onPlayerWeaponFire) When i use the sniper and i shot it dont give me the chatbox but if i remove the second line ( isElement(....) ) it work why ?
  7. RekZ

    Rotacion

    Eso es para agarrar el objeto no quiero agarrarlos una vez spawnee no se movera mas, solo se borrara. Ya probe con eso y con otra funcion que encontre por la comunidad y no me resolvi nada, igual ya me rendi si alguna vez me viene la idea a la cabeza lo dejare por hay gracias igual.
  8. RekZ

    Rotacion

    Eso seria en una situacion normal pero yo me refiero que si le cambio la rotacion al objeto principal, los objetos segundarios seguiran spawneando segun las coordenadas en que se creo el primero, osea en ese caso que tu enviaste si le cambiara la rotacion los objetos secundarios aparecerian fuera del principal (por ejemplo en un objeto principal cuadrado al cual le quiero spawnear 4 antorchas en sus esquinas) , hay mi problema
  9. RekZ

    Rotacion

    Haber segundo intento porque ya intente esto otra vez o no cuajo Llevo como medio año sin tener idea de como hacer algo tan simple y no consigo calcular la rotacion. Estoy intentando hacer "eventos aleatorios" en mi servidor con un objeto en concreto y estoy intentando que independientemente de la rotacion que tenga el objeto principal los objetos secundarios spawneen siempre en el mismo lugar del objeto principal.
  10. RekZ

    isTimer bug ?

    MTA server dont recognize the timer.
  11. RekZ

    isTimer bug ?

    addEventHandler("onPlayerCommand", getRootElement(), function(cmd) if cmd = "timer" then if ( isElement(timer) and isTimer(timer)) then killTimer(timer) outputChatBox( "off!" ) else timer = setTimer( function , 60000, 0) outputChatBox( "on!" ) end end end -- Result always ON addEventHandler("onPlayerCommand", getRootElement(), function(cmd) if cmd = "timer" then if (isTimer(timer)) then killTimer(timer) outputChatBox( "off!" ) else timer = setTimer( function , 60000, 0) outputChatBox( "on!" ) end end end -- Result always OFF when i add "isElement" i get alwais ON and when i use only "isTimer" i get always OFF , i cant see what is my problem.
  12. Hay una tabla donde agregas los items, esa tabla tambien la usa el gamemode para saber que datos borrar cuando mueres o que datos tiene que darte cuando logueas ese es el error, toda esa parte del codigo que publicas esta bien, nose como se llamara la tabla pero fijate en la funcion que hace que cuando muera un juegador le borre los items estaba en spawn.lua si no recuerdo mal. EDIT: playerDataTable es la tabla donde debes agregar tambien los objetos.
  13. Haber si me entendeis y me podeis ayudar porque quiero hacer algo pero la verdad no se de donde sacar algunos conocimientos y tampoco se me da bien explicar digamos que quiero colocar 4 placas en el mapa cada una con una rotacion totalmente distinta, lo que yo querria es que sea cual sea la rotacion al colocar cualquier evento en esas placas aparezca siempre las misma 6 piedras en el mismo lugar sin importar la rotacion por ejemplo en las esquinas de la placa. nose si se entiende bien en la primera placa con 180 de rotacion aparezcan las piedras en las esquinas , otra con 90 que aparezcan en las mismas esquinas aunque cambiara su rotacion..
  14. createColRectangle I have a question, i can resize the zone using variables or an event like onColShapeHit ?
  15. i think the function isn't in work, i use it a lot of time and now is not working i have the lastest version of mta server and client. setHeliBladeCollisionsEnabled
  16. I Have a weapon system and you can have over 100 weapons for player , i use elementData but i want to optimize the code because the server lag and drop connections when there is connect 90 - 100 players
  17. it can cause high bandwidth consumption, sending it every time i change a data?
  18. Like the title.. I wanted to know if there is any way to connect a table between client and server.
  19. Podria servir esto para poder dar uso a una misma tabla tanto en client como en server ?
  20. RekZ

    Server FPS Sync

    I want to know if there is some possible config to limit the Server FPS Sync in Linux Ubuntu
  21. No problem , if you need help you can send me a PM :3 Good Luck
  22. I think you post in the Wrong section , to get the leven use local Level = exports.exp_system:getPlayerLevel ( player ) or i think you can use the function function RewardLevel ( oldLevel , newLevel ) if ( newLevel == 1 ) then outputChatBox( "test" ) elseif ( newLevel == 2 ) then givePlayerMoney ( source , 50000 ) outputChatBox( "Reward Level 2 : get $50,000!" ) elseif ( newLevel == 3 ) then setPedStat( source , 24, 585) outputChatBox( "Reward Level 3 : increase Max HP!" ) end end addEvent("onPlayerLevelUP", true) addEventHandler("onPlayerLevelUP", getRootElement(), RewardLevel)
  23. skin whit no "bone" produce a diferent reaction , but not this errors , i test it many times
  24. RekZ

    Vehicle Shot

    The ID 5072 is right , i test in a car whit 4 Passengers and create 4 projectiles , and the same whit 3... 3 projectiles.. , my head blow think in this function
×
×
  • Create New...