I don't have very much experience with get_distance() but you can try this (fixed the tag mismatch error):
PHP Code:
public Loc_Check(id)
{
new gunshop[3] = {-2504, 150, -413};
new origin[3]
get_user_origin(id,origin);
if(get_distance(origin, gunshop) <= 164) {
client_print(id,print_chat,"* [GUN] So, what kind of weapons are you interested in?")
Main_Menu(id)
}
else {
client_print(id,print_chat,"* [GUN] You must be near the gunshop in order to recieve guns!")
}
}
__________________