gonzalo450 Posted February 15, 2013 Share Posted February 15, 2013 Hola A Todos Tengo Una Pequeña Duda De Cuales Son Las Funciones Para Crear Este Script: Zonas Anti Camps: Ejemplo En Los Hospitales Te Quedas Un Tiempo Determinado Y Te Quita Vida y/o Mueres. Me Podrian Ayudar Gracias . Link to comment
FraN-724 Posted February 15, 2013 Share Posted February 15, 2013 setTimer setElementHealth Link to comment
Alexs Posted February 15, 2013 Share Posted February 15, 2013 (edited) createColCuboid --o createRadarArea setTimer y Quizá esta función te sirva: https://wiki.multitheftauto.com/wiki/IsElementMoving Edited February 15, 2013 by Guest Link to comment
gonzalo450 Posted February 15, 2013 Author Share Posted February 15, 2013 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? Link to comment
FraN-724 Posted February 15, 2013 Share Posted February 15, 2013 En vez de setElementHealth puedes usar la funcion killPed Link to comment
Alexs Posted February 15, 2013 Share Posted February 15, 2013 setTimer ( theplayer, 60, 1, "Estas Por Morir" ) Recuerda que el argumento de tiempo esta en milisegundos, 1 minutos = 60000. Link to comment
Recommended Posts