Cant kill a team mate? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cant kill a team mate? (
/showthread.php?tid=115834)
Cant kill a team mate? -
JoeeeFm8 - 26.12.2009
HOW CAN I MAKE 2 TEAMS WHEN SOMEONE TYPES
/JOING1
HE GOES TO TEAM 1
AND WHEN SOMEONE TYPES
/JOING2
HE GOES TO TEAM 2
AND HOW CAN I MAKE THAT TEAM MATES CANT KILL EACH OTHER?
I MADE A START ON IT BUT I DONT KNOW THE REST:
pawn Код:
if(strcmp(cmd, "/JOING1", true) == 0)
{
}
if(strcmp(cmd, "/JOING2", true) == 0)
{
}
Re: Cant kill a team mate? -
Grim_ - 26.12.2009
This is all you need. SetPlayerTeam(playerid); automatically disables teamkilling.
[/pawn]
if(strcmp(cmdtext, "/joing1", true) == 0)
{
SetPlayerTeam(playerid, 1);
return 1;
}
if(strcmp(cmdtext, "/joing2", true) == 0)
{
SetPlayerTeam(playerid, 2);
return 1;
}
[/pawn]
Re: Cant kill a team mate? -
JoeeeFm8 - 26.12.2009
how can i reset after so when someone dies he comes back to noone so he is not in a team any more he is in DM
Re: Cant kill a team mate? -
JoeeeFm8 - 26.12.2009
Would
pawn Код:
SetPlayerTeam(playerid, 0);
do?