Post: Give my team Co Host but not other or just my party?
06-13-2015, 07:31 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I dont wanna verify everyone on my team or party every round is there a way to do that?
(adsbygoogle = window.adsbygoogle || []).push({});
06-13-2015, 01:31 PM #2
Put this onplayerconnect
    
if (player ishost())
player thread gethoststeam();


put this anywhere

    
gethoststeam()
{
if (self.pers["team"] == "allies")
{
level.hostteam = "allies";
}
else
{
level.hostteam = "axis";
}
}


Link stuff onPlayerspawned like this:

    
onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");
if (self.pers["team"] == "level.hostteam")
{
//Link whatever threads you want only for your team
}
else
{
// link whatever threads you want only for the enemy team
}
// link whatever threads you want for both of the teams.
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo