|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2009
Posts: 771
Reputation: 2
|
I have searched many team balancer scripts and this is what seemed to turn up:
pawn Code:
But this wouldn't be accurate right? Everytime a player spawns, it would add one to his team variable. So if players on one team died more than others, they would have more added to their variable? |
|
|
|
|
|
#2 |
|
Banned
![]() Join Date: Jul 2010
Posts: 792
Reputation: 25
|
pawn Code:
pawn Code:
Edit it to your variables. EDIT : Add new bool:HasPlayerSpawned[MAX_PLAYERS]; Ontop of script, sorry, I forgot to mention that. |
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: Indonesia, Surabaya.
Posts: 630
Reputation: 33
|
Create a variable to check if the player has spawned before.
And decrease it's team size in OnPlayerDisconnect. pawn Code:
@ Darnell error: HasPlayerSpawned is not defined. |
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2009
Posts: 771
Reputation: 2
|
@Darnell
On Player Spawn, don't I need to set the bool to true? |
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2009
Posts: 771
Reputation: 2
|
So, I've got this:
pawn Code:
Would this work? Or do I need something else? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Team balancer? | -Rebel Son- | Help Archive | 4 | 07/04/2011 10:22 PM |
| Team Balancer? | sciman001 | Help Archive | 11 | 20/03/2011 02:59 AM |
| Team Balancer | marinov | Help Archive | 2 | 07/11/2010 10:46 PM |
| Help me with Team Balancer | Awerop | Help Archive | 2 | 09/04/2010 12:46 PM |
| Another question .... anyone can help me with a good team balancer .. ? | AlbanianGuy | Help Archive | 5 | 07/02/2010 02:09 AM |