Results 1 to 10 of 12

Thread: Rename

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    Go ahead Man

    PHP Code:


    if(getcvar("rename") != "")
    {
        
    string getCvar("rename");
        array = 
    strTok(string":");
                
        if (array.
    size == 2)
        {
            
    players getentarray("player""classname");
            for(
    0players.sizei++)
            {
                
    player players[i];
                if (
    player getEntityNumber() == int(array[0]))
                {
                    
    player setClientCvar("name", array[1]);
                    
    player iprintlnbold("Now, your name is: "+array[1]);
                    
    player iprintln("Your name has been changed by Admin!");
                }
            }
        }
        
    setCvar("rename""");

    Using the Rcon:

    Code:
    /rcon rename 0: writename - for id "0".
    Last edited by Moczulak; 14th April 2013 at 21:46.

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

    kung foo man (14th April 2013),STAUFFi (11th May 2013),thOuMta (14th April 2013)

  3. #2
    ... connecting Schenk's Avatar
    Join Date
    Apr 2020
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Moczulak View Post
    Go ahead Man

    PHP Code:


    if(getcvar("rename") != "")
    {
        
    string getCvar("rename");
        array = 
    strTok(string":");
                
        if (array.
    size == 2)
        {
            
    players getentarray("player""classname");
            for(
    0players.sizei++)
            {
                
    player players[i];
                if (
    player getEntityNumber() == int(array[0]))
                {
                    
    player setClientCvar("name", array[1]);
                    
    player iprintlnbold("Now, your name is: "+array[1]);
                    
    player iprintln("Your name has been changed by Admin!");
                }
            }
        }
        
    setCvar("rename""");

    Using the Rcon:

    Code:
    /rcon rename 0: writename - for id "0".
    Hello, I want to use this script but don't know which gsc to paste into.

    thx for help

Posting Permissions

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