Weird Spawn Bug, Lot of code.
#2

Try removing SpawnPlayer(playerid) and ClearAnimations(playerid) from OnPlayerDeath. When they respawn their animations are cleared and they call OnPlayerSpawn anyway, so it's just useless. I don't think this is the issue, though.

Judging from what code you've shared, there's no reason at all why someone should be dying on spawn. The only time you set their health is in OnPlayerRegister and when [Died] is set to 1.

Do they die every time they spawn, or just the first time they spawn? Do they 0 health die, or do they go into your script death system? I don't see why they would go into the script death because [Died] should always be 0, and [PlayerSpawnCalled] is also always false.

Unless there's something somewhere that you haven't shared, I don't see any reason why this is happening.
Reply


Messages In This Thread
Weird Spawn Bug, Lot of code. - by SkyFlare - 06.06.2020, 17:50
Re: Weird Spawn Bug, Lot of code. - by [FMJ]PowerSurge - 06.06.2020, 19:18
Re: Weird Spawn Bug, Lot of code. - by Cell_ - 06.06.2020, 19:32
Re: Weird Spawn Bug, Lot of code. - by SkyFlare - 07.06.2020, 07:50

Forum Jump:


Users browsing this thread: 1 Guest(s)