Teamkill in samp 0.3?
#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


Messages In This Thread
Teamkill in samp 0.3? - by Nameless303 - 05.11.2009, 14:56
Re: Teamkill in samp 0.3? - by KIDUL - 05.11.2009, 19:11
Re: Teamkill in samp 0.3? - by Jose - 05.11.2009, 19:42
Re: Teamkill in samp 0.3? - by Rainmaker - 05.11.2009, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)