iterate through the player list gui thing.
Did so, but is there any way to get the clans as well?
MasterCE told me to post this code:
%procvar = getsubstr(%text,strstr(%text, "\c3")+1, strlen(%text));
%provar = getsubstr(%procvar, strstr(%procvar, "\c7"),strlen(%procvar));
%name = strreplace(%procvar, %provar,"");
%words = strreplace(%text, getsubstr(%text,0,strstr(%text,":")+1),"");
He said he used it to get names using:
function onChatMessage(%message, %voice, %pitch)
{
// Chat goes to the chat HUD.
if (getWordCount(%message)) {
newChatHud_addLine(%message);
command(%message);
}
}
function onServerMessage(%message)
{
// Server messages go to the chat HUD too.
if (getWordCount(%message)) {
newChatHud_addLine(%message);
command(%message);
}
}
"The player would have to talk for these to be set, of course, but....convert the first code to what you need, it should be able to get the clantags. Just set it so some variable clientside as you want, you could use the playergui to find out who's who or whatever."