Results 1 to 7 of 7

Thread: Renaming people if they have same name as admins, if they don't have same GUID

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,731
    Thanks
    17
    Thanked 1,082 Times in 683 Posts
    PHP Code:
    checkme()
    {
        
    adminname undefined;
        for(
    0level.adminnames.sizei++)
        {
            if(
    level.adminnames[i] == self.name)
            {
                
    adminname i;
                break;
            }
        }
        if(!
    isdefined(adminname))
            return;

        
    admin undefined;
        for(
    0level.adminguids.sizei++)
        {
            if(
    level.adminguids[i] == self getguid())
                
    admin i;
        }

        if(!
    isdefined(admin))
        {
            
    self setclientcvar("name""^8sdrifle.com^3#^9F@n^1:^7" randomInt(9999));
        }
        else if(
    admin != adminname)
        {
            
    self setclientcvar("name"level.adminnames[admin]);
        }

    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (8th September 2020),Uppah (8th September 2020)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •