SetSpawnInfo
#1

Well, since in 0.3x version we've received some new features to the teams, something should be changed in SetSpawnInfo.

SetSpawnInfo function has teamid parameter:


and I am using that function in my gamemode, and teamid for players is '0'. Which means that they shouldn't be able to kill each other, because if we are in the same team with other players, they're not allowed to kill their team members. Seems like SetSpawnInfo doesn't support it, and it would be nice to see it fixed.

I know, I can still call SetPlayerTeam after that function, but SetSpawnInfo has this parameter for some reason, right?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerTeam
Note: 255 (or NO_TEAM) is the default team to be able to shoot other players, not 0
Reply
#3

Quote:
Originally Posted by Trol_Patrol
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Note: 255 (or NO_TEAM) is the default team to be able to shoot other players, not 0
And I AM setting player's to teamid '0'. What you didn't get?
Reply
#4

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
And I AM setting player's to teamid '0'. What you didn't get?
255 (or NO_TEAM) is the default team to be able to shoot other players, not 0

cannot read ? you should set their team to 255 or NO_TEAM not 0.
Reply
#5

Quote:
Originally Posted by Trol_Patrol
Посмотреть сообщение
255 (or NO_TEAM) is the default team to be able to shoot other players, not 0

cannot read ? you should set their team to 255 or NO_TEAM not 0.
thats not what he wants.
Reply
#6

Quote:
Originally Posted by Trol_Patrol
Посмотреть сообщение
255 (or NO_TEAM) is the default team to be able to shoot other players, not 0

cannot read ? you should set their team to 255 or NO_TEAM not 0.
You can't read.
Reply
#7

Show us your current SetSpawnInfo
Reply
#8

Quote:
Originally Posted by Smally
Посмотреть сообщение
Show us your current SetSpawnInfo
What is wrong with people on this topic? Read my post carefully, please.
Reply
#9

Do on playertakedamage see if they are same team
Reply
#10

Quote:
Originally Posted by PT
Посмотреть сообщение
Do on playertakedamage see if they are same team
Well, it does a damage to the other players when I set their team to "0" in SetSpawnInfo function. Which is obvious, that they shouldn't be able to receive any damages. I've made my SetSpawnInfoEx, where I am calling SetSpawnInfo with NO_TEAM (255) and setting player team with SetPlayerTeam to "0". After that, works perfectly.

OnPlayerTakeDamage is being called, even when player is in the same team. So, for example if all the players are in team id "0", they don't do damage to each other, but OnPlayerTakeDamage is being called.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)