Jump to content

Ayuda


JesusAliso

Recommended Posts

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Borre el getElementType creo que no es necesario intenta nuevamente

local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer, matchingDimension ) 
                givePlayerMoney ( thePlayer, 1000 ) 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
setTimer ( hill_Enter, 1000, 1 ) 
  
function hill_Leave ( thePlayer, matchingDimention ) 
givePlayerMoney ( thePlayer, 0 ) 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Enter ) 

Link to comment

Como dice ciber, Te quedaria así Intenta:

local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer, matchingDimension ) 
            if getElementType ( thePlayer ) == "player" then 
                givePlayerMoney ( thePlayer, 1000 ) 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
setTimer ( hill_Enter, 1000, 1 ) 
  
function hill_Leave ( thePlayer, matchingDimention ) 
givePlayerMoney ( thePlayer, 0 ) 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Enter ) 

Link to comment

A no ps, Intenta esto si no me rindo ._.

local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer, matchingDimension ) 
                givePlayerMoney ( thePlayer, 1000 ) 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
setTimer ( hill_Enter, 1000, 1 ) 
  
function hill_Leave ( thePlayer, matchingDimention ) 
givePlayerMoney ( thePlayer, 0 ) 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Enter ) 

Link to comment
  • MTA Team
Como dice ciber, Te quedaria así Intenta:
local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer, matchingDimension ) 
            if getElementType ( thePlayer ) == "player" then 
                givePlayerMoney ( thePlayer, 1000 ) 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
setTimer ( hill_Enter, 1000, 1 ) 
  
function hill_Leave ( thePlayer, matchingDimention ) 
givePlayerMoney ( thePlayer, 0 ) 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Enter ) 

Link to comment
local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
                local ganar = setTimer(givePlayerMoney, 1000, 0, thePlayer, 1000) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
  
function hill_Leave ( thePlayer ) 
if isTimer(ganar) then 
killTimer(ganar) 
end 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Enter ) 

Si no funciona, fijate los errores en /debugscript 3 y me los dices.

Link to comment
  • MTA Team

te corrigo Sasuke:

Pequeñisimo error:

local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
                local ganar = setTimer(givePlayerMoney, 1000, 0, thePlayer, 1000) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
  
function hill_Leave ( thePlayer ) 
if isTimer(ganar) then 
killTimer(ganar) 
end 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Leave ) 

Link to comment
te corrigo Sasuke:

Pequeñisimo error:

local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) 
local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) 
  
function hill_Enter ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
                local ganar = setTimer(givePlayerMoney, 1000, 0, thePlayer, 1000) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
  
function hill_Leave ( thePlayer ) 
if isTimer(ganar) then 
killTimer(ganar) 
end 
end 
addEventHandler ( "onColShapeLeave", hillArea, hill_Leave ) 

Cierto. Me olvide de cambiar la funcion para ejecutar. Muchas Gracias.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...