Raised This Month: $ Target: $400
 0% 

Solved help finding all players that is near the bombsite


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Siveroo
Junior Member
Join Date: Apr 2020
Old 09-23-2020 , 04:01   help finding all players that is near the bombsite
Reply With Quote #1

i tried to use find_entity_by_class , find their origin, and then use find_sphere_class, but i dont think it's working

Code:
    new bs_ent = find_ent_by_class(bs_ent, "info_bomb_target")     get_brush_entity_origin(bs_ent, SITES_ORIGIN)         console_print(1, "test 1 %f", SITES_ORIGIN[1])     new bs_players[33]     new playerfound = find_sphere_class(0, "player", 300.0, bs_players, 33, SITES_ORIGIN)         for(new i = 0; i < playerfound; i++){         console_print(1, "test 2 %f", SITES_ORIGIN[2])     }     return PLUGIN_CONTINUE;

if i run my code, the console_print function will just output 0.0000, so i believe my code still can't find the bombsite origin...

pls help me XD

Last edited by Siveroo; 09-23-2020 at 21:35.
Siveroo 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 13:49.


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