Handle respawn for paintball (don't use normal death respawn)

This commit is contained in:
Vortrex
2022-06-17 13:08:30 -05:00
parent f1affc2f8f
commit 90face486b

View File

@@ -402,6 +402,9 @@ function onPlayerDeath(client, position) {
fadeCamera(client, false, 1.0);
}
setTimeout(function () {
if (isPlayerInPaintBall(client)) {
respawnPlayerForPaintBall(client);
} else {
if (getPlayerCurrentSubAccount(client).inJail) {
let closestJail = getClosestPoliceStation(getPlayerPosition(client));
despawnPlayer(client);
@@ -450,6 +453,7 @@ function onPlayerDeath(client, position) {
setPlayerControlState(client, true);
resetPlayerBlip(client);
}
}
}, 2000);
}, 1000);