View Single Post
  #1  
Old 04-30-2012, 09:58 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Playerlist Changes

As most of you would of noticed (probably) the playerlist subheadings have changed from eg "Admins" to "--- Staff ---".
Now if you are like me and don't like the change you may use this script on your server.
PHP Code:
//#CLIENTSIDE
function onCreated(){
  
//Defines the names to replace.
  //If you are going to change it it works like this:
  // "before name", "after name".
  
temp.replace = {
    {
"--- Staff ---",    "Staff"},
    {
"--- Buddies ---""Buddies"},
    {
"--- Guild ---",   "Guild"},
    {
"--- Players ---""Players"},
    {
"--- Ignore ---",  "Ignore"},
    {
"--- Offline ---""Offline"},
  };
  
//Sleeps for two seconds so when the actual
  //player list script is initialized it doesn't replace
  //what we are going to change; with what it wants.
  
sleep(2);
  
//Loops through all the names to replace and replaces them.
  
for(temp.0temp.replace.size(); temp.++){
    
temp.PlayerList_List.findtext(replace[i][0]);
    
PlayerList_List.rows[temp.r].text replace[i][1];
  }
  
//Focuses on the playerlist then graal to make the changes
  //come into effect.
  
PlayerList_List.MakeFirstResponder(true);
  
GraalControl.MakeFirstResponder(true);

__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 04-30-2012 at 10:09 AM..
Reply With Quote