SA-MP Forums Archive
Spectate command and team balancer - 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: Spectate command and team balancer (/showthread.php?tid=370963)



Spectate command and team balancer - CoDeZ - 21.08.2012

Hello guys , i have a small problem , my spectate command is at a filter script , and whenever an admin spectates a player it doesn't count him to be removed from the Team balancer( Team balancer is scripted at my game mode)
Example :
Team 1 : 5 players
Team 2 : 7 Players

Say the admin is from Team 1
When admin uses /spectate [playerid]
and then uses /spectateoff
now the counter is like this
Team 1: 6 players
Team 2: 7 players

Now can i detect if an admin is spectacting a player?


Re: Spectate command and team balancer - Kirollos - 21.08.2012

make the spectate thingy inside your gamemode.