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)
}
}
__________________