Maybe using "client_PreThink" might work. Also, perhaps not having "angle" and "text" a global variable. But a local one. Like so:
Code:
public client_PreThink(id)
{
new angle[3];
new text[30];
get_user_origin(id, angle, 0);
format(text, 30, " %f, %f, %f", angle[0], angle[1], angle[2]);
write_file("viewvec.txt", text);
client_print(id, print_chat, text);
}
__________________