25.11.2017, 01:26
i know this is a really stupid question but... did you ever try
if player selected a team, GetPlayerTeam wouldnt return 0 and you can directly spawn them? i assume on second death you already use it but maybe you dont define if before first death? it looks like that to me. Its generally the silliest and simplest answer solves the problem in death scripts, if you are sure of you didnt do anything wrong in the first question that pops in minds.
Код:
if(GetPlayerTeam(playerid)!=0) //check if player selected a team { ///force your players to spawn here. } else{ ///do your spawn selection here. }