Teamkill in samp 0.3?
#1

Is it it possible that teammates can't harm each other in samp 0.3? (Take health away)
Ps. I don't use gTeams but I use the SetPlayerTeam thing...

Thanks!
Reply
#2

iґve the same problem i tried many ways to do so ... using it in a timer,addplayerclassex,... but it finally should work somehow because servers like the partyserver still use the anti team kill
Reply
#3

SA-MP has bugs with GetPlayerTeam (Sometimes return an invalid team "255") and SetPlayerTeam (needs a timer to re-set the team everytime) to fix the team(anti tk) bug.

Fix: Use a timer.


OnPlayerConnect:
Код:
SetTimerEx("ChangeName",1000,1,"d",playerid);
Public:
Код:
forward ChangeName();
public ChangeName()
{
  for(new playerid; playerid < MAX_PLAYERS; playerid++)
  SetPlayerTeam(playerid, GetPlayerTeam(playerid));
  return 1;
}
Reply
#4

Sa-mp HAD bugs wih Set/Get PlayerTeam, but not anymore !!! Wake up dude ! 0.3 is already out !

Nameless303 : Read following ..

https://sampwiki.blast.hk/wiki/GetPlayerTeam
https://sampwiki.blast.hk/wiki/SetPlayerTeam
https://sampwiki.blast.hk/wiki/SetTeamCount
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)