Spawns question? Need Help !
Code:
public plugin_init(){The above code can create a new spawn point to 32,but also doesnot allow for player join. Is seem HL engine does not refresh the changing. I try to put this code in plugin_precache(),it works. But max_ts = 0 ??? ,in plugin_precache can't count the entity . Any one help? thanks. |
Re: Spawns question? Need Help !
wouldnt really do it in plugin_precache...
the spawn ents prolly have more settings which makes them useable. you should use/make a plugin that gets all the info about spawn points, then set that info on your fake spawn ents. |
Re: Spawns question? Need Help !
Quote:
|
Re: Spawns question? Need Help !
wtf does this have to do with superhero? - moving post
|
Re: Spawns question? Need Help !
Quote:
Not work also. |
Re: Spawns question? Need Help !
help help? thanks.
|
Re: Spawns question? Need Help !
You must know you're creating spawns at the origin (0,0,0); which will cause players to get stuck and die at spawn.
I guess the missing part, "// set origin here", is relevant for checking the problem. |
Re: Spawns question? Need Help !
Quote:
because for my bad english,so sorry. --------- example: Server load a map de_train , base this map only for 22 players I want to setup for 32 players I make a plugin use add ent and set origin and more player can join in, it work fine. How can you do that whitout use plugin_precache() ,So more player can join in. Becurse, in plugin_precache() i cannt count the original spawns i need to used. thanks. |
Re: Spawns question? Need Help !
You MUST create this in precache, things you need:
Code:
Quote:
Only solution here is physically storing how many spawns are on each map then you can work it out in precache. As you said you know de_train has 22 spawns so thats 11 CT and 11 T, just means storing all this info in your script I'm afraid. There is a more hacky way: create 32 spawn points (precache) store misc data in iuser4 (still precache) plugin_init check total amount of spawns then start removing ones you added since they have a unique key (iuser4) |
Re: Spawns question? Need Help !
Quote:
Quote:
But must setup howmany (t ot ct) need to be add in plugin_precache(). Quote:
|
| All times are GMT -4. The time now is 07:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.