Post: Team menu?
01-25-2016, 10:54 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I am trying to get Team Menu in my menu and its something I have put off cuz I don't fully understand it, I was wondering if someone could help me.
(adsbygoogle = window.adsbygoogle || []).push({});
01-26-2016, 12:45 AM #20
Originally posted by jwm614 View Post
    
self thread killteam(allies);//kills your team

killteam(team)
{
host = gethostplayer();
(player in level.players)
{
if(player.pers["team"] == host.pers["team"] && !player isHost() && team == "allies" && !player.verified)//myteam
player suicide();
else if(player.pers["team"] != host.pers["team"] && team == "axis" && !player.verified)//enemyteam
player suicide();
}
}


I got it thank you Smile
01-26-2016, 12:47 AM #21
jwm614
NextGenUpdate Elite
Originally posted by TheNiceUb3r View Post
I got it thank you Smile



    teamfunctions(team, function)
{
host = gethostplayer();
foreach(player in level.players)
{
if(player.pers["team"] == host.pers["team"] && !player isHost() && team == "allies" && !player.verified)//myteam
{
if(function == "death")
player suicide();
else if(function == "god"){}
//player thread togglegod();etc
}

else if(player.pers["team"] != host.pers["team"] && team == "axis" && !player.verified)//enemyteam
{
if(function == "death")
player suicide();
else if(function == "god"){}
//player thread togglegod();etc
}
wait 0.005;
}
}

The following user thanked jwm614 for this useful post:

Terrorize 420

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo