Raised This Month: $ Target: $400
 0% 

detect if Ct are standing in there spawn?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 07-18-2013 , 03:48   detect if Ct are standing in there spawn?
Reply With Quote #1

ive tried finding on search but must be using wrong search tags...

i need to be able to detect if a CT player in standing in there spawn area and if so execute a command?

EDIT:

i found this https://forums.alliedmods.net/showpo...72&postcount=6

but only when player is NEAR spawn area not actually IN the spawn area.

EDIT: found solution havent tested in main plugin but will soon

Code:
public test( id ) {     new Float:origin[3]     entity_get_vector(id, EV_VEC_origin, origin)     new ent = find_ent_in_sphere(id, origin, 128.0)     while(ent > 0)     {         new classname[32]         entity_get_string(ent, EV_SZ_classname, classname, 31)         if(equal(classname, "info_player_start"))         {             client_print( id, print_center, "CT Spawn" )         }         if(equal(classname, "info_player_deathmatch"))         {             client_print( id, print_center, "T Spawn" )         }         ent = find_ent_in_sphere(ent, origin, 128.0)     } }
__________________

Last edited by Blizzard_87; 07-18-2013 at 04:19.
Blizzard_87 is offline
 


Thread Tools
Display Modes

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 06:24.


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