Jump to content

Ayuda


JesusAliso

Recommended Posts

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hice esto, Cuando entra al "Área" Le da 100$, Como haría para que le Diera 1000$ cada segundo?

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 ) 
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 

Tambien Cuando entro y salgo del are, Me da 1000$ :(

Link to comment
  • MTA Team
  
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 ) 
        if (getElementType(thePlayer) == "player") then 
                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 ) 

Asi seria mas o menos..Prueba asi

Link to comment
  • MTA Team

Y si no quieres que te de dinero cuando sales usas "onColShapeLeave"

Asi seria:

  
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 ) 
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
function hill_Leave ( thePlayer, matchingDimention )  
givePlayerMoney ( thePlayer, 0 ) 
end 
  
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
addEventHandler ( "onColShapeHit", hillArea, hill_Leave ) 
setTimer ( hill_Enter 1000, 1 ) 

Link to comment
  • MTA Team

Probas asi, me comi una Coma

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 ) 
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
function hill_Leave ( thePlayer, matchingDimention )  
givePlayerMoney ( thePlayer, 0 ) 
end 
  
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
addEventHandler ( "onColShapeHit", hillArea, hill_Leave ) 
setTimer ( hill_Enter, 1000, 1 ) 

Link to comment

Creo que es ..

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 ) 
        if (getElementType(thePlayer) == "player") then 
                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
  • MTA Team

Lool me equivoque denuevo..xD seria asi:

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 ) 
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
        end 
end 
function hill_Leave ( thePlayer, matchingDimention )  
givePlayerMoney ( thePlayer, 0 ) 
end 
  
addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
addEventHandler ( "onColShapeLeave", hillArea, hill_Leave ) 
setTimer ( hill_Enter, 1000, 1 ) 

Link to comment

Intenta esto:

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 ) 

Edited by Guest
Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...