Cant kill a team mate?
#1

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)
{

}
Reply
#2

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]
Reply
#3

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
Reply
#4

Would
pawn Код:
SetPlayerTeam(playerid, 0);
do?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)