Setnick help

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

Previous topic - Next topic

MixeR


umar4911

RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter


umar4911

to change the nick:
player.Name = "poop"
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

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.