• Respawn without Spawn()
    5 replies, posted
I was wondering... Is there anyway to respawn a player without using Spawn() as I would like to avoid calling PlayerSpawn.
I'm pretty sure it's not possible because that's the point of the hook. But what possible reason would you like to respawn a player without calling PlayerSpawn? There is most likely a better way to do what you're trying to do.
[QUOTE=vexx21322;44710481]I'm pretty sure it's not possible because that's the point of the hook. But what possible reason would you like to respawn a player without calling PlayerSpawn? There is most likely a better way to do what you're trying to do.[/QUOTE] I just want to revive a player without running some stuff that I have in PlayerSpawn. And wondered if there was a way to avoid calling the hook instead of putting a condition in PlayerSpawn.
You can use a bool and place it in the playerspawn hook and make it check to see if that bool is true or not before doing stuff.
[QUOTE=_FR_Starfox64;44710502]I just want to revive a player without running some stuff that I have in PlayerSpawn. And wondered if there was a way to avoid calling the hook [B][U]instead of putting a condition in PlayerSpawn[/U][/B].[/QUOTE] [QUOTE=Banhfunbags;44710535]You can use a bool and place it in the playerspawn hook and make it check to see if that bool is true or not before doing stuff.[/QUOTE] He probably knows that, but just wants to see if there is another way
You could do something stupid like never actually kill the player, but "kill" him in your own, coded way. Display the animations but don't actually call ply:Kill().
Sorry, you need to Log In to post a reply to this thread.