is_matchstart ?
how would I check when a clanmatch has started?
For our game half-life deathmatch: adrenaline gamer a clanmatch has started when the global event 'Countdown' has passed. so this should be fairly easy but I cant get it working. PHP Code:
with my next attempt I am thinking off replacing the g_Matchstart with a new server cvar. but this must be possible to achieve on a more efficient way, not? |
Re: is_matchstart ?
I don't see a reason for the variable to be per-player.
PHP Code:
|
Re: is_matchstart ?
thanks Ill give that a shot, using bool does not require fakemeta?
|
Re: is_matchstart ?
No, bool is a generic Pawn tag. No include is required to use it.
|
Re: is_matchstart ?
nice learned something again.
btw it works! :D there is a reason I would like to use this for (id) I didn't state. I thought this would be impossible because of the global event but I only need the global event to determan wether or not a clanmatch has started. is there a way to do something on per player (id) when the clanmatch has started? for example: this PHP Code:
PHP Code:
|
Re: is_matchstart ?
In the global event, just loop through all players.
|
Re: is_matchstart ?
PHP Code:
this is a break through and makes a lot possible for the things I wanted to do. |
Re: is_matchstart ?
ok theres a problem looping through the players mixes up info retrieved from each player.
player index number gets moved or something. Example: http://rghost.net/41114478.view the steamid in the HUD is not correct one nor is the Ip. would there be a way to solve this? |
| All times are GMT -4. The time now is 05:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.