Posts: 15
Threads: 5
Joined: Oct 2017
Reputation:
0
I discovered, when I use SetSpawnInfo on me and I set in this Team: 0, and my friend has same team as me set by SetSpawnInfo too then if we get "GetPlayerTeam" our teams are 0, right? But callback OnPlayerGiveDamage will damage will work on us and we will damage ourself. If we USE SetPlayerTeam to me and my friend team 0 too, then it will not take any damage. So SetSpawnInfo does not work correctly - SetPlayerTeam works correctly.
Posts: 249
Threads: 29
Joined: Apr 2011
Reputation:
0
I've also noticed this problem yesterday, wondering why
Posts: 15
Threads: 5
Joined: Oct 2017
Reputation:
0
It's so weird! GetPlayerTeam function returns the player's team but player's team does not work correctly!
Posts: 251
Threads: 3
Joined: Jul 2011
Reputation:
0
If I recall correctly, SetPlayerTeam even had to be used in SA-MP 0.2. Using the team parameter in SetSpawnInfo then only allowed the usage of /tpm while using SetPlayerTeam wouldn't work for it and vise versa.
Posts: 824
Threads: 6
Joined: Sep 2012
Reputation:
0
Use SetPlayerTeam( playerid, 255 ); when the player connects and see if it makes a difference.