Code:
public plugin_init(){
new ent, max_ts,entity
new Float:origin[3]
while ((ent = find_ent_by_class(ent, "info_player_deathmatch")))
max_ts++
while (max_ts<32){
entity = create_entity("info_player_deathmatch")
// set origin here
entity_set_origin (entity,origin)
max_ts++
}
}
In a map 22 spawn point for player.
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.