-
Posts
346 -
Joined
-
Last visited
-
Days Won
7
Everything posted by RekZ
-
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.
-
MTA server dont recognize the timer.
-
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.
-
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.
-
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..
-
createColRectangle I have a question, i can resize the zone using variables or an event like onColShapeHit ?
-
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
-
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
-
it can cause high bandwidth consumption, sending it every time i change a data?
-
Like the title.. I wanted to know if there is any way to connect a table between client and server.
-
Podria servir esto para poder dar uso a una misma tabla tanto en client como en server ?
-
I want to know if there is some possible config to limit the Server FPS Sync in Linux Ubuntu
-
No problem , if you need help you can send me a PM :3 Good Luck
-
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)
-
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
-
but this is for only get the driver no ? if getPedOccupiedVehicleSeat (localPlayer) == 0 then
-
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
-
I have the same problem , shoot 2 rockets whit passenger
-
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
-
zi eso uso. Gracias a tu info pude hacerlo :3 Graciaas
-
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.