Quote:
Originally Posted by Kotoamatsukami
Hello.
I recently used the native too and I do believe the distance should be in integer, you can refer to the native information.
Code:
native Float:get_user_aiming(index,&id,&body,dist=9999);
|
I did change it to 50.
I did that for now, but it doesn't display the message on the panels, even if I put test on the emssage.
Code:
public display_map_name(id)
{
new ent, body
new entlist[32]
new panel
while ((ent = find_ent_by_tname(ent, "target_map")) !=0)
{
//entcount = find_sphere_class(ent, "player", 50.0, entlist, sizeof(entlist))
//if (entcount > 0) client_print(0, print_chat, "Found %d players at panel %d.", entcount, panel + 1)
if ( is_user_connected(id) || is_user_alive(id) )
{
for(new player_index; player_index < get_user_aiming(id, ent, body, 50) ; player_index++)
{
set_hudmessage(g_hud_colour[0], g_hud_colour[1], g_hud_colour[2], -1.0, -1.0, 0, 0.0, 2.0, 0.0, 0.0, 2)
show_hudmessage(entlist[player_index], g_mapnames[g_mapselection[panel]])
}
}
panel++
}
}