Setnick??
player.Name
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Name
(https://www.meme-arsenal.com/memes/091e294ad754ddf981ee679cb70f51ee.jpg)
(https://i.imgflip.com/18jc9a.jpg?a435096)
it doesnt exist a function called SetNick
to change the nick:
player.Name = "poop"
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
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;
}
}
}
No, use this:
-removed-
Warning to you.