nice script Bukz&V-Man :) keep up!!!
one small suggestion: when possible replace the special characters for colors with (c N) syntax
it's easier to read :D
one suggestion for the devs: add a on_conline_update event, so this kind of scripts will get a huge performance boost, they are checking every frame for updates using strstr a consistent number of times, with such a alias the check would happen only when necessary.
when i get a good slice of time i'll make&send the patch :D
EDIT.
into console.cpp near line 108 (in SVN) replace the old conoutf with this one
and u'll have a onconline event to be used like this:
one small suggestion: when possible replace the special characters for colors with (c N) syntax
it's easier to read :D
one suggestion for the devs: add a on_conline_update event, so this kind of scripts will get a huge performance boost, they are checking every frame for updates using strstr a consistent number of times, with such a alias the check would happen only when necessary.
when i get a good slice of time i'll make&send the patch :D
EDIT.
into console.cpp near line 108 (in SVN) replace the old conoutf with this one
[SELECT ALL] Code:
void conoutf(const char *s, ...)
{
defvformatstring(sf, s, s);
clientlogf("%s", sf);
con.addline(sf);
delete[] conline; conline=newstring(sf);
// execute onconline event
const char *onconline = getalias("onconline");
if(onconline && onconline[0]) { addsleep(0, onconline); }
}
[SELECT ALL] Code:
onconline = [
all checks... blah blah
]