14.05.2010, 13:11
I rather try helping you getting it done on your own than giving you finished code, so you don't need to ask again if you want to script something that easy again.
You have a perfect and easy-to-understand explanation of what an array is right here:
https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays
To achieve what you want to have, you create an array with two cells storing the number of players of each team in those two cells.
Whenever a player dies, you check his team and depending in which team he's been you decrement the respective array cell by one (subtract one).
That's really all you need to know, anything else can be read from documentary.
Now try scripting it yourself and if you run into specific problems, post here again.
You have a perfect and easy-to-understand explanation of what an array is right here:
https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays
To achieve what you want to have, you create an array with two cells storing the number of players of each team in those two cells.
Whenever a player dies, you check his team and depending in which team he's been you decrement the respective array cell by one (subtract one).
That's really all you need to know, anything else can be read from documentary.
Now try scripting it yourself and if you run into specific problems, post here again.