MixeR

  • Newbie
  • Posts: 3

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 473
I am gamer, programmer and hacker. Try to find me!
xD


umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 473
I am gamer, programmer and hacker. Try to find me!
xD

Alecu Madalin

  • Jr. Member
  • Posts: 92
Re: Setnick help
« Reply #4,  »Last edited
Quote from umar4911 on August 23rd, 05:42 PM
to change the nick:
Code: [Select]
player.Name = "poop"
makes sense now

Code: [Select]
function onPlayerJoin () {
    player.Name = "im_retarded"
}

im wrong sry

Mursaleen5544

  • Newbie
  • Posts: 19
Re: Setnick help
« Reply #5,  »
Take GetTok function from forum and here is the code of command.

Code: [Select]
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;
}
}
}

Athanatos

  • Hero Member
  • Romania Cops N Robbers Lead Developer
  • Posts: 810
Re: Setnick help
« Reply #6,  »Last edited by Doom_Kill3R
No, use this:
-removed-

Warning to you.