Jump to content

RekZ

Members
  • Posts

    346
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by RekZ

  1. 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.
  2. RekZ

    isTimer bug ?

    MTA server dont recognize the timer.
  3. 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.
  4. 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.
  5. 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..
  6. createColRectangle I have a question, i can resize the zone using variables or an event like onColShapeHit ?
  7. 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
  8. 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
  9. it can cause high bandwidth consumption, sending it every time i change a data?
  10. Like the title.. I wanted to know if there is any way to connect a table between client and server.
  11. Podria servir esto para poder dar uso a una misma tabla tanto en client como en server ?
  12. RekZ

    Server FPS Sync

    I want to know if there is some possible config to limit the Server FPS Sync in Linux Ubuntu
  13. No problem , if you need help you can send me a PM :3 Good Luck
  14. 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)
  15. skin whit no "bone" produce a diferent reaction , but not this errors , i test it many times
  16. 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
  17. RekZ

    Vehicle Shot

    but this is for only get the driver no ? if getPedOccupiedVehicleSeat (localPlayer) == 0 then
  18. RekZ

    Vehicle Shot

    create 2 rockets , one whit the position of mine and other whit the position of the passenger y test whit a chatbox and the passenger recibe the message too
  19. RekZ

    Vehicle Shot

    The same problem , no error
  20. RekZ

    Vehicle Shot

    I have the same problem , shoot 2 rockets whit passenger
  21. RekZ

    Vehicle Shot

    if there is a passengers in the swat , shot 2 rockets , how i can fixed ? function Dhooter( ) if isPedInVehicle ( localPlayer ) then local veh = getPedOccupiedVehicle ( localPlayer ) if (veh) and getVehicleOccupant ( veh , 0 ) then if ( getElementModel ( veh ) == 601 ) then local X, Y, Z = getElementPosition(veh) createProjectile(veh, 19 , turX, turY, turZ, 0, nil, 0, 0, 0) --createExplosion(turX, turY, turZ , 8, false, 0.5, false) end end end end
  22. I have the same problem ... in mta 1.5.1 First appeared then in 1.5.2 That disappeared and in the new version 1.5.3 appeared again, It is a horrible crap, Fill the log with that useless message
  23. RekZ

    Ordenar ComboBox

    zi eso uso. Gracias a tu info pude hacerlo :3 Graciaas
  24. Como podria ordenar esto ? por orden alfabetico y/o numerico al ser posible , en el codigo las tengo en orden , pero a la hora de cargarse ,se carga como le viene en gana.
×
×
  • Create New...