Code:
public Loc_Check(id)
{
new Float:gunshop[3] = {-2504.0, 150.0, -413.0};
new origin[3]
get_user_origin(id,origin);
if(get_distance(origin, gunshop) <= 164.0) {
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!")
}
}
okay so heres a snippet, i want it to display the menu if im near the coordinates specified, the full plugin compiles, but with a tag mismatch, and if i say my command not near the location, it says i must be near the gunshop, which is what i want, but if i do it near where i want it to work, it says im not close enough.