How to find out howmany player(T or CT) spawn point in a map?
Code:
new T_spawn = find_ent_by_class ( -1, "info_player_deathmatch" )T_spawn = 34 It's not correctly. (is 12) Actuality I want to find out howmany spawn point in a map, and add new spawn point in running time if no enough. any one help? |
Re: How to find out howmany player(T or CT) spawn point in a map?
For example:
PHP Code:
|
Re: How to find out howmany player(T or CT) spawn point in a map?
Quote:
|
Re: How to find out howmany player(T or CT) spawn point in a map?
Quote:
|
Re: How to find out howmany player(T or CT) spawn point in a map?
Quote:
Is that have a way to add player spawns in running time? How to do that? thanks for your help. |
Re: How to find out howmany player(T or CT) spawn point in a map?
The only way I can think of is to scan around a current spawn and use PointContents to see if there is anything in the spot or within a few units around it. If not, then spawn an info_player_start/_deathmatch.
|
Re: How to find out howmany player(T or CT) spawn point in a map?
yeah,find out the spawns is work find now.
If i using create_entity("info_player_deathmatch") to create a spawn point. It is that meaning the map(22max.player) add to (23max.player) and player can join? |
Re: How to find out howmany player(T or CT) spawn point in a map?
Quote:
|
Re: How to find out howmany player(T or CT) spawn point in a map?
Quote:
|
| All times are GMT -4. The time now is 08:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.