Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. 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 )
  2. That's because you can't just change the GUI to a new one.
  3. if ( colt >= 40 <= 998 ) then Eso no tiene sentido.
  4. 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 )
  5. That's not generated by the code I gave you.
  6. La verdad es que no entiendo el problema, podes o no podes disparar dentro de la zona?
  7. And we just gotta take your word for it, right...?
  8. If you don't post what you have done so far, we can't help you really.
  9. Si no nos decis cual es el problema exacto, no podemos ayudarte.
  10. Castillo

    help

    Show me what you did.
  11. Castillo

    help

    Get the nitro level after checking if it has nitro.
  12. Castillo

    2 Bind Key

    Simplemente verifica si la tecla esta presionada con getKeyState.
  13. 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.
  14. /crun setWorldSpecialPropertyEnabled ( "aircars", true )
  15. Castillo

    Timer :3

    You're welcome.
  16. Show me the data which is saved on SQL.
  17. 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 )
  18. You want to give exp to any player that loses?
  19. Castillo

    Timer :3

    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
  20. You want to take away exp from players that don't win?
  21. Are you sure that it saved the way I gave you?
  22. Maybe it doesn't work with streamed sounds.
×
×
  • Create New...