You MUST create this in precache, things you need:
Code:
spawn = create_entity("info_player_deathmatch") // Terrorist
/* or
spawn = create_entity("info_player_start") */ // CT
set_entity_origin(spawn, SOMEORIGIN)
set_pev(spawn, pev_angles, SOMEANGLES)
dispatch_spawn(spawn)
Failure on doing = no new spawn, since the HL engine caches them in precache. If you say it doesn't work, I'll slap you!!! I already have this method tried and tested been working for many months, since the mod I'm working on destroys old and places in new.
Quote:
|
Originally Posted by jopmako
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.
|
Why do you need to do that?
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)