Team balance - 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)
+--- Thread: Team balance (
/showthread.php?tid=631713)
Team balance -
MehranGta - 03.04.2017
SOLVED!
Re: Team balance -
princejeet1510 - 03.04.2017
Is it so hard to use "Search" Tool?
Next time search for things.History give you better experience xD
Re: Team balance -
MehranGta - 03.04.2017
Quote:
Originally Posted by princejeet1510
|
I tested that code, not working.
Re: Team balance -
DRIFT_HUNTER - 03.04.2017
Quote:
Originally Posted by MehranGta
I tested that code, not working.
|
Logic and code looks fine, it should work.
Re: Team balance -
MehranGta - 04.04.2017
It 's not working, and always let players join that team.
Re: Team balance -
MehranGta - 04.04.2017
I just changed the code and used the GetTeamCount
maybe usefull for someone who read this thread :
pawn Код:
stock IsTeamFree(teamid)
{
for(new teams = 1; teams < 9; teams++)
{
if(teams == teamid) continue;
if(GetTeamCount(teamid) > GetTeamCount(teams))
{
print("Yeah It works!");
return 0;
}
}
return 1;
}