SA-MP Forums Archive
[BUG] SetPlayerTeam - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: [BUG] SetPlayerTeam (/showthread.php?tid=258730)



[BUG] SetPlayerTeam - Johnny_Xayc - 01.06.2011

Functions SetPlayerTeam prohibits killing players of one team,but
players from one team can kill each other!


Re: [BUG] SetPlayerTeam - Ash. - 01.06.2011

Sorry but I have no idea what you mean..?


Re: [BUG] SetPlayerTeam - Burridge - 01.06.2011

He means that SetPlayerTeam stops teamkilling when set to the same team as another player (meaning you can't damage people set in the same team as you). However there's a problem with it where it sometimes still allows teamkilling.


Re: [BUG] SetPlayerTeam - Ash. - 01.06.2011

Ahh my bad

+ Well, just make an anti-team kill? Not that hard to do surely..?


Re: [BUG] SetPlayerTeam - Johnny_Xayc - 01.06.2011

player from Team 1 can kill player Team 1!


Re: [BUG] SetPlayerTeam - Ash. - 01.06.2011

pawn Код:
public OnPlayerDeath(playerid, killerid)
{
     if(GetPlayerTeam(playerid) == GetPlayerTeam(killerid)) SendClientMessage(killerid, COLOUR, "Why kill someone that is on your team? Stupid...");
    return 1;
}



Re: [BUG] SetPlayerTeam - Johnny_Xayc - 01.06.2011

Quote:
Originally Posted by funky1234
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid)
{
     if(GetPlayerTeam(playerid) == GetPlayerTeam(killerid)) SendClientMessage(killerid, COLOUR, "Why kill someone that is on your team? Stupid...");
    return 1;
}
no,it is not suitable


Re: [BUG] SetPlayerTeam - Ash. - 01.06.2011

Take a look at OnPlayerShootPlayer - it was created. By someone on this forum but I can't find it as i'm on my phpone


Re: [BUG] SetPlayerTeam - Johnny_Xayc - 01.06.2011

no,why i should use OnPlayerShootPlayer when it should be in Multiplayer ?


Re: [BUG] SetPlayerTeam - Ash. - 01.06.2011

Take a look at OnPlayerShootPlayer - it was created. By someone on this forum but I can't find it as i'm on my phpone


Re: [BUG] SetPlayerTeam - Burridge - 01.06.2011

funky1234: That's not really the point at all. If this is a bug in the default SA-MP function (which I think it is), then he did the right thing by reporting the bug, so the developers can fix the issue in the function.


Re: [BUG] SetPlayerTeam - DRIFT_HUNTER - 01.06.2011

What i founded out so far is that ID 0 can kill players from his team but players from his team cant kill him


Re: [BUG] SetPlayerTeam - Mauzen - 01.06.2011

I think this has something to do with lag/ping, as I noticed this problem more often with players with a high ping.


Re: [BUG] SetPlayerTeam - Burridge - 02.06.2011

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
I think this has something to do with lag/ping, as I noticed this problem more often with players with a high ping.
Really? I noticed it with me and some of my players notice this a lot, and most of us have low ping.


Re: [BUG] SetPlayerTeam - Mike Garber - 02.06.2011

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
I think this has something to do with lag/ping, as I noticed this problem more often with players with a high ping.
It's not.


Re: [BUG] SetPlayerTeam - Ash. - 02.06.2011

Quote:
Originally Posted by Burridge
Посмотреть сообщение
funky1234: That's not really the point at all. If this is a bug in the default SA-MP function (which I think it is), then he did the right thing by reporting the bug, so the developers can fix the issue in the function.
True, but I was giving him a temporary fix till they do!