TeraProxy лет назад: 9
Родитель
Сommit
6beff25ace
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      index.js

+ 3 - 7
index.js

@@ -64,7 +64,9 @@ module.exports = function Essentials(dispatch) {
 	
 	
 	dispatch.hook('S_CREATURE_LIFE', 1, event => {
 	dispatch.hook('S_CREATURE_LIFE', 1, event => {
 		if(event.target.equals(cid) && alive != event.alive) {
 		if(event.target.equals(cid) && alive != event.alive) {
-			alive = event.alive
+			setTimeout(function () {
+				nostrum(!(alive = event.alive))
+			}, 1900)
 			
 			
 			if(!alive) {
 			if(!alive) {
 				nextUse = 0
 				nextUse = 0
@@ -72,12 +74,6 @@ module.exports = function Essentials(dispatch) {
 			}
 			}
 		}
 		}
 	})
 	})
-	
-	dispatch.hook('C_REVIVE_NOW', 1, (event) => {
-		setTimeout(function () {
-			nostrum(true)
-		}, 1900)
-	})
 
 
 	dispatch.hook('S_MOUNT_VEHICLE', 1, mount.bind(null, true))
 	dispatch.hook('S_MOUNT_VEHICLE', 1, mount.bind(null, true))
 	dispatch.hook('S_UNMOUNT_VEHICLE', 1, mount.bind(null, false))
 	dispatch.hook('S_UNMOUNT_VEHICLE', 1, mount.bind(null, false))