SetSpawnInfo does not change player team(?)
#9

Quote:
Originally Posted by NaS
View Post
This wouldn't be fully correct either. SetSpawnInfo shouldn't set the team when called, it should set the team on the next respawn. Furthermore you can make a much easier fix by doing this in OnPlayerSpawn:

Code:
public OnPlayerSpawn(playerid)
{
SetPlayerTeam(playerid, GetPlayerTeam(playerid));
}
Since GetPlayerTeam returns the correct value, you can just update it, like BeckzyBoi mentioned.
Oh i had no idea that getplayerteam returned the true value, you're totally right that would indeed be a lot easier and better.
Reply


Messages In This Thread
SetSpawnInfo does not change player team(?) - by Milak - 08.02.2018, 13:11
Re: SetSpawnInfo does not change player team(?) - by Matz - 10.02.2018, 12:34
Re: SetSpawnInfo does not change player team(?) - by Milak - 11.02.2018, 09:05
Re: SetSpawnInfo does not change player team(?) - by Banana_Ghost - 14.02.2018, 02:01
Re: SetSpawnInfo does not change player team(?) - by RogueDrifter - 14.02.2018, 02:25
Re: SetSpawnInfo does not change player team(?) - by beckzy - 17.02.2018, 09:03
Re: SetSpawnInfo does not change player team(?) - by Kane - 17.02.2018, 10:00
Re: SetSpawnInfo does not change player team(?) - by NaS - 17.02.2018, 22:12
Re: SetSpawnInfo does not change player team(?) - by RogueDrifter - 17.02.2018, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)