Bueno Ya Tengo El Codigo:
-- create our hill area for our gamemode
local hillArea = createColRectangle ( 1993.8890380859, -1454.0297851563, 100, 90 )
local hillRadar = createRadarArea ( 1993.8890380859, -1454.0297851563, 100, 90, 0, 0, 0, 170 )
-- add hill_Enter as a handler for when a player enters the hill area
function hill_Enter ( thePlayer, matchingDimension )
-- announce to everyone that the player entered the hill
if (getElementType(thePlayer) == "player") then
exports["Evo-notificaciones"]:showBox ( thePlayer, "error", "Sal De Esta Zona O Moriras En 1 Minuto." )
setTimer ( theplayer, 60, 1, "Estas Por Morir" )
setRadarAreaFlashing ( hillRadar, false )
end
end
addEventHandler ( "Hit", hillArea, hill_Enter )
-- add hill_Enter as a handler for when a player leaves the hill area
function hill_Exit ( thePlayer, matchingDimension )
-- check if the player is not dead
if (getElementType(thePlayer) == "player") then
if isPedDead ( thePlayer ) ~= true then
-- if he was alive, announce to everyone that the player has left the hill
setRadarAreaFlashing ( hillRadar, false )
end
end
end
addEventHandler ( "Leave", hillArea, hill_Exit )
Pero En Mensaje: Estas Por Morir! , Quisiera Cambiarlo Por: setElementHealth ( theplayer, getElementHealth(theplayer) - 100 )
Cosa Que Cuente El Minuto Y Lo Mate
Eso Es Posible O No?