Posts: 393
Threads: 105
Joined: Dec 2014
Reputation:
0
Hiya!
I need a script for Anti-Team mate kill, so you CAN'T kill team mates.
Thanks!
Posts: 393
Threads: 105
Joined: Dec 2014
Reputation:
0
Mmm, can you help a bit? thanks btw
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Help with what?
There's a lot of information on the wiki.
Posts: 393
Threads: 105
Joined: Dec 2014
Reputation:
0
Where I need to add the script?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
The wiki has information on pretty much everything you'd need, but what do you need help with?
Posts: 393
Threads: 105
Joined: Dec 2014
Reputation:
0
Okay, that script: public OnPlayerSpawn(playerid)
{
// Set a player's team to 4 when they spawn
SetPlayerTeam(playerid, 4);
return 1;
}
Do I need to add SetPlayerTeam(playerid, 4); by OnPlayerSpawn section?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
SetPlayerTeam(playerid, teamid) where-ever you want to set the player's team.
Using that, will set the player's team to 4, when they spawn, as it pretty much says.
But you can just use team 0, 1, 2, 3 or anything else.
As long as the team ID of one player is the same as the other player, they cannot damage eachother, so if you want nobody to be able to damage eachother, that should work fine.