-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
El problema es muy simple, pusiste que al entrar, que pueda disparar, y al salir que no, osea al revez. zona = createRadarArea ( 3578.8000488281, -769.29998779297, 400, 150, 0, 170, 255, 230 ) -- los 2 primeros numeros son las X, Y del map, despues los 2 que sigen son el tamaño para hacer el cuadrado o rectangulo, y por ultimo los 4 numeros son los R G B A. safeZoneRadar = createColRectangle ( 3578.8000488281, -769.29998779297, 400, 150 ) function seguro ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then toggleControl ( hitElement, "fire", false ) toggleControl ( hitElement, "aim_weapon", false ) toggleControl ( hitElement, "vehicle_fire", false ) end end addEventHandler ( "onColShapeHit", safeZoneRadar, seguro ) function salida ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then toggleControl ( hitElement, "fire", true ) toggleControl ( hitElement, "aim_weapon", true ) toggleControl ( hitElement, "vehicle_fire", true ) end end addEventHandler ( "onColShapeLeave", safeZoneRadar, salida )
-
That's because you can't just change the GUI to a new one.
-
El area aparece en el mapa?
-
if ( colt >= 40 <= 998 ) then Eso no tiene sentido.
-
zona = createRadarArea ( 3578.8000488281, -769.29998779297, 400, 150, 0, 170, 255, 230 ) -- los 2 primeros numeros son las X, Y del map, despues los 2 que sigen son el tamaño para hacer el cuadrado o rectangulo, y por ultimo los 4 numeros son los R G B A. safeZoneRadar = createColRectangle ( 3578.8000488281, -769.29998779297, 400, 150 ) function seguro ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then toggleControl ( hitElement, "fire", true ) toggleControl ( hitElement, "aim_weapon", true ) toggleControl ( hitElement, "vehicle_fire", true ) end end addEventHandler ( "onColShapeHit", safeZoneRadar, seguro ) function salida ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then toggleControl ( hitElement, "fire", false ) toggleControl ( hitElement, "aim_weapon", false ) toggleControl ( hitElement, "vehicle_fire", false ) end end addEventHandler ( "onColShapeLeave", safeZoneRadar, salida )
-
Entraste con un vehiculo?
-
That's not generated by the code I gave you.
-
La verdad es que no entiendo el problema, podes o no podes disparar dentro de la zona?
-
And we just gotta take your word for it, right...?
-
If you don't post what you have done so far, we can't help you really.
-
Si no nos decis cual es el problema exacto, no podemos ayudarte.
-
Get the nitro level after checking if it has nitro.
-
Simplemente verifica si la tecla esta presionada con getKeyState.
-
addEvent ( "onPlayerRaceWasted", true ) addEventHandler ( "onPlayerRaceWasted", root, function ( ) local rank = tonumber ( getElementData ( source, "race rank" ) ) outputChatBox ( "Your rank is: ".. tostring ( rank ), source ) if ( rank and rank ~= 1 ) then local randomExp = math.random ( 5, 10 ) exports [ "Level" ]:addPlayerEXP ( source, randomExp ) outputChatBox ( getPlayerName ( source ) .." has won ".. randomExp .." experience for finishing ".. rank .."!", root, 255, 255, 0 ) end end ) Use that and tell me what it says on chat.
-
/crun setWorldSpecialPropertyEnabled ( "aircars", true )
-
Show me the data which is saved on SQL.
-
addEvent ( "onPlayerRaceWasted", true ) addEventHandler ( "onPlayerRaceWasted", root, function ( ) local rank = tonumber ( getElementData ( source, "race rank" ) ) if ( rank and rank ~= 1 ) then local randomExp = math.random ( 5, 10 ) exports [ "Level" ]:addPlayerEXP ( source, randomExp ) outputChatBox ( getPlayerName ( source ) .." has won ".. randomExp .." experience for finishing ".. rank .."!", root, 255, 255, 0 ) end end )
-
You want to give exp to any player that loses?
-
local player local rx, ry = guiGetScreenSize ( ) addEventHandler ( "onClientPlayerWasted", localPlayer, function ( k ) if ( source ~= localPlayer ) then return end if ( isElement ( k ) and getElementType ( k ) == "player" ) then player = k setCameraTarget ( k ) addEventHandler ( "onClientRender", root, killcam ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, killcam ) end ,6000, 1 ) end end ) function killcam ( ) if isElement ( player ) then dxDrawText ( "Viewing Kill Cam of " .. getPlayerName ( player ) .. "!", 0, 0, rx, ry, tocolor ( 255, 0, 0, 255 ), 5, "default", "center", "center", false, false, false ) end end
-
You want to take away exp from players that don't win?
-
Are you sure that it saved the way I gave you?
-
Maybe it doesn't work with streamed sounds.
