Setnick help

Started by MixeR, Aug 23, 2019, 12:39 PM

Previous topic - Next topic

MixeR


umar4911

I am gamer, programmer and hacker. Try to find me!
xD


umar4911

to change the nick:
player.Name = "poop"
I am gamer, programmer and hacker. Try to find me!
xD

Alecu Madalin

#4
Quote from: umar4911 on Aug 23, 2019, 04:42 PMto change the nick:
player.Name = "poop"

makes sense now

function onPlayerJoin () {
    player.Name = "im_retarded"
}

im wrong sry

Mursaleen5544

Take GetTok function from forum and here is the code of command.

else if ( cmd == "setname" )
{
if ( !text ) PrivMessage( "Usage /" + cmd + " [Nick-ID] [Name]" ,player );
else
{
local plr = GetPlayer( GetTok( text, " ", 1 ) );
if ( !plr ) PrivMessage( "Invalid player." ,player );
else
{
local name = GetTok( text, " ", 2 );
PrivMessage( "You have changed the name of "+plr.Name+" to "+name ,player );
plr.Name = name;
}
}
}

NicusorN5

#6
No, use this:
-removed-

Warning to you.