Raised This Month: $ Target: $400
 0% 

Spawn counter for each player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 05-24-2013 , 08:51   Re: Spawn counter for each player
Reply With Quote #10

Quote:
Originally Posted by alonelive View Post
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.

Last edited by guipatinador; 05-24-2013 at 08:53.
guipatinador is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode