Nicolas ECM Posted November 5, 2014 Share Posted November 5, 2014 Hola a todos, tengo un problema con este script se crea el marker normal cuando uso el comando /a, cuando algun jugador entra a ese market se deberia morir y escribirle has caido pero no funciona me podrian ayudar porfavor, otra duda como se puede hacer para que al entrar al market se le quite el 30% de la vida al jugador que entro, porfavor ayuda . function ard (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) end addCommandHandler ("a", ard) function MarkerHit(thePlayer) if getElementType ( thePlayer ) == "player" then killPed ( thePlayer ) outputChatBox ( "has caido", thePlayer ) end end addEventHandler( "onMarkerHit", theMarker, MarkerHit ) Link to comment
Tomas Posted November 6, 2014 Share Posted November 6, 2014 function ard (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", theMarker, MarkerHit ) end addCommandHandler ("a", ard) function MarkerHit(thePlayer) if getElementType ( thePlayer ) == "player" then killPed ( thePlayer ) outputChatBox ( "has caido", thePlayer ) end end Link to comment
Nicolas ECM Posted November 7, 2014 Author Share Posted November 7, 2014 Muchas gracias Link to comment
Recommended Posts