SA-MP Forums Archive
Last Team Standing - 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: Last Team Standing (/showthread.php?tid=615259)



Last Team Standing - Kruno88 - 19.08.2016

I've defined two teams,Team A and Team B...I also have a counter that counts how much players is in every team.What functions would you use to,for example,when Team A loses all its players to SendClientMessage that Team B won and Team B lost.


Re: Last Team Standing - iLearner - 19.08.2016

Show us your code and we can help you


Re: Last Team Standing - Kruno88 - 19.08.2016

I found a way!I will use OnPlayerDeath and OnPlayerDisconnect.


Re: Last Team Standing - iLearner - 19.08.2016

cool, good for ya


Re: Last Team Standing - Gammix - 19.08.2016

OnPlayerStateChange
Can be used when player goes to class selection/spectating screen.