Results 1 to 7 of 7

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    if you using libcod:
    PHP Code:
    /* your callback script (callbacksetup) */
    CodeCallback_UserInfoChanged(num)
    {
        
    name self get_userinfo("name");
        if (
    self.name != name && !self isBot())
        {
            
    self.name name;
            return 
    self thread scripts\_names::checkme();
        }
        
        
    self clientuserinfochanged();

    This is not very good code, it is best to rework the renaming functions with the return of the result (yes / no) in case of success (good nickname) / failure (nickname is not allowed) -> then update / do not update userinfo

    if you not using libcod, create loop for checking name != oldname with delay: 0.5 - 1 sec.
    Or insert checking-code into exist loop.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

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

    kung foo man (11th September 2020),Uppah (9th September 2020)

  3. #2
    ... connecting Uppah's Avatar
    Join Date
    Sep 2020
    Posts
    4
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Yeah, I'm using libcod.

    I totally forgot about the callback script! I actually used it for when I did anti-namesteal.
    I'll go play a little around with it. Thank you pointing me in the right direction, I really appreciate it!

  4. The Following User Says Thank You to Uppah For This Useful Post:

    kung foo man (11th 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
  •