Blockland Forums > Modification Help
Getting all the Client objects Clientside?
<< < (2/2)
Badspot:
no. 
Rolland:

--- Quote from: Aloshi on June 21, 2007, 08:13:43 PM ---
--- Quote from: Badspot on June 21, 2007, 05:57:49 PM ---iterate through the player list gui thing. 

--- End quote ---

Did so, but is there any way to get the clans as well?

--- End quote ---
MasterCE told me to post this code:

--- 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),"");
--- End code ---
He said he used it to get names using:

--- Code: ---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);
   }
}
--- End code ---
"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."
Navigation
Message Index
Previous page

Go to full version