Raised This Month: $ Target: $400
 0% 

Finding Spawns


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
slurpycof
Senior Member
Join Date: Nov 2004
Old 03-03-2005 , 23:05  
Reply With Quote #4

I found this code somewhere on the these forums (sorry, don't remember who to credit). Part of it may help you.

Code:
 public plugin_precache() {     precache_model("models/w_suit.mdl")     return PLUGIN_CONTINUE  }  public tspawn_test(id, level, cid) {     new entid, Float:Ang[3], Float:Vec[3], Float:vAng[3]     new tEnt, tfEnt     new i=0     tEnt = find_ent_by_class(-1, "info_player_deathmatch")     while (tEnt > 0) {         tfEnt = find_ent_by_class(tEnt, "info_player_deathmatch")         entity_get_vector(tEnt, EV_VEC_angles, Ang)         entity_get_vector(tEnt, EV_VEC_origin, Vec)         entity_get_vector(tEnt, EV_VEC_v_angle, vAng)         entid = create_entity("info_target")         entity_set_string(entid, EV_SZ_classname, "view_spawn")         entity_set_model(entid, "models/w_suit.mdl")         entity_set_origin(entid, Vec)         entity_set_vector(entid, EV_VEC_angles, Ang)         entity_set_vector(entid, EV_VEC_v_angle, vAng)         entity_set_int(entid, EV_INT_solid, 1)         entity_set_int(entid, EV_INT_movetype, 6)         tEnt = tfEnt         i++     }     return PLUGIN_CONTINUE  }
slurpycof is offline
 



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 14:00.


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