SA-MP Forums Archive
Anyone know how to script anti team kill in YSI ? - 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: Anyone know how to script anti team kill in YSI ? (/showthread.php?tid=80036)



Anyone know how to script anti team kill in YSI ? - Mr_Finnigan - 01.06.2009

Not punish but where bullets do not damage teammates ?


Re: Anyone know how to script anti team kill in YSI ? - Gamer007 - 01.06.2009

just use setplayerteam


Re: Anyone know how to script anti team kill in YSI ? - Mr_Finnigan - 01.06.2009

Код:
// top of your gamemode
forward SettingPlayerTeam();
//OnPlayerConnect
SetTimerEx("SettingPlayerTeam",10,1,"d",playerid);
//Bottom of your script
public SettingPlayerTeam()
{
  for(new playerid; playerid < 200; playerid++)
    SetPlayerTeam(playerid, gTeam[playerid]);
  return 1;
}
I found this but ysi doesnt use "gteam" and doesnt use public SettingPlayerTeam,it uses Script_On(SettingPlayerTeam(), but when i try changing it i get a warning saying SetPlayerTeam is never used ?