Change a players name on the server.
#2

SetPlayerName

And more precisely, something like that.

pawn Code:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
format(PlayerName, sizeof PlayerName, "[%s]%s", cmdtext[6], PlayerName); //assuming command is "/clan", cmdtext[6] is the start of the command argument.
SetPlayerName(playerid, PlayerName);
Reply


Messages In This Thread
Change a players name on the server. - by Martin_Smith - 20.02.2009, 17:58
Re: Change a players name on the server. - by yom - 20.02.2009, 18:01
Re: Change a players name on the server. - by Martin_Smith - 20.02.2009, 18:02
Re: Change a players name on the server. - by Martin_Smith - 20.02.2009, 18:07
Re: Change a players name on the server. - by yom - 20.02.2009, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)