SetPlayerTeam - Cannot kill each other?
#1

SetPlayerTeam (https://sampwiki.blast.hk/wiki/SetPlayerTeam)

Says: "Note: Players on the same team can not kill each other."

1. Does that mean two players on the same team trying to kill each other take no damage from each other when being shot?

2. Does the team set in SetSpawnInfo = SetPlayerTeam?

3. I am scripting an RP server, so I want everyone to be able to kill everyone. How can I accomplish this?
Reply
#2

Yep..
peoples in the same team cannot attack each other.


I suggest you do something similar to this:


#define Team_POLICE 1
#define Team_ CIVILIAN 2


gteam[playerid] == Team_CIVILIAN
gteam[playerid] == TEAM_POLICE


etc. etc.
Reply
#3

Well, I want everyone to be able to kill everyone. Including police on police, civilians on civilians.
Reply
#4

Hence gteam[playerid].


Setplayerteam = Friendlyfire OFF.


gteam[playerid] = Friendlyfire ON..


Good luck champ
Reply
#5

I appreciate your help, but I am not understanding...

What do I need to do so everyone can kill everyone?
Reply
#6

#define Team_Civilian 1


public OnPlayerSpawn

gteam[playerid] = Team_Civilian;




and remove the SetPlayerTeam as that makes FriendlyFire OFF.

I dont know your code, but when he then login as police, then:


#define Team_Police 2

gteam[playerid] = Team_Police
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)