Spawn counter for each player
Hello!
How can i count the spawns of player? PHP Code:
|
Re: Spawn counter for each player
Quote:
PHP Code:
|
Re: Spawn counter for each player
Blizzard_87, Thank you!
|
Re: Spawn counter for each player
One question...
new spawn_count[ 33 ]; Why 33? |
Re: Spawn counter for each player
|
Re: Spawn counter for each player
- Make sure that user is alive.
- Change spawn count to zero in those events - Game_Commencing and Game_will_restart_in (just a suggestion) |
Re: Spawn counter for each player
Thank you all!
>> - Change spawn count to zero in those events - Game_Commencing and Game_will_restart_in (just a suggestion) 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. |
Re: Spawn counter for each player
Quote:
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. |
Re: Spawn counter for each player
I have this code:
PHP Code:
PHP Code:
|
Re: Spawn counter for each player
Quote:
|
| All times are GMT -4. The time now is 16:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.