Anyone know how to script anti team kill in YSI ?
#1

Not punish but where bullets do not damage teammates ?
Reply
#2

just use setplayerteam
Reply
#3

Код:
// 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 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)