Raised This Month: $ Target: $400
 0% 

Spawns question? Need Help !


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 07-08-2006 , 02:40   Spawns question? Need Help !
Reply With Quote #1

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.

Last edited by jopmako; 07-08-2006 at 02:51.
jopmako is offline
Send a message via MSN to jopmako
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode