1

Topic: Odd server_setclientname() behavior

In my mod, when a person does something, I change his name to something else (let's say, "tee"). This is how I execute it:

server_setclientname(client_id, "tee");

For some reason, the name is only set to "tee" when the person attempts to change his name. Because of some code I added, the person can not change his name. So when he tries to, his name becomes "tee". Does anyone have an explanation for this erratic behavior?

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

2

Re: Odd server_setclientname() behavior

How 'bout you dont try to change something you don't clearly understand ? Also from that piece of code ... only god can tell you whats wrong.

We will meet again when the flowers spread their glorious scent of victory and the birds sing us the melody of justice...

3

Re: Odd server_setclientname() behavior

What's your problem?
You want more of my code?

        if(players[queried].auth == -1)
        {
            char buf[256];
            str_format(buf, sizeof(buf), "%s, you are an impostor. Go away and never join a server with one of these people again.",server_clientname(queried));
            send_chat(-1,CHAT_ALL,buf);
            server_setclientname(queried, "[IMPOSTOR]");
            players[queried].changename = false;
            change_job(queried, 9);
        }
if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

4

Re: Odd server_setclientname() behavior

Is that enough?

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

5

Re: Odd server_setclientname() behavior

Nevermind, this is exactly what I meant. You can wait days and only get answers from sarcastic morons or none at all.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

6

Re: Odd server_setclientname() behavior

sorry, but i dont know about coding and this things ~.~