Quote:
Originally Posted by alonelive
Thank you all!
No.. This function will be used in other code (vip features for exolent's vip plugin).
there are some menus for each round from map's beginning: round 1 - only pistol weapon menu, round 2 - pistol, famas, mp5 and previous, etc.; round 3 - ak47, m4a1, and previous, round 4 and all next rounds - full weapon menu (including awp).
And for that I needed this calculations with spawn.
|
You don't understand what I said.
Imagine the following situation,
- The server is empty
- Player A join to T or CT (spawn count = 1)
- Player B join to the opposite team and make the first spawn (spawn count = 1 for this player)
- After this point, the game is restarted. After the game restart both players respawn (obviously) and spawn count for both players is now 2
- In the same round, after a few seconds, player C joins T or CT and is spawned (spawn count = 1)
What is the problem here?
- This is officialy the first round but players A and B already have 2 spawn counts, and the player C only 1 spawn count.
- Players A and B will get the menu with pistols, famas, mp5, etc... and player C only get the menu with pistols.
The problem is solved if you reset the spawn count of the players in game restart or game commecing.
If you don't care, I already don't care. Do what you want but don't ask why some players get weapons instead of pistols in the first round.