Gang name beside Player name :/
#2

If you mean changing the players actual name, and not changing their name internally in your script/in chats, you can use the strins function along with SetPlayerName.

Example of usage:
pawn Код:
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);

strins(playerName, "[Mafia] ", 0);
SetPlayerName(playerid, playerName);
Similarly, the Mafia tag can then be removed with the strdel function. Example:
pawn Код:
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);

strdel(playerName, 0, 7);
SetPlayerName(playerid, playerName);
Reply


Messages In This Thread
Gang name beside Player name :/ - by Stop - 30.11.2016, 01:40
Re: Gang name beside Player name :/ - by Abagail - 30.11.2016, 02:18
Re: Gang name beside Player name :/ - by GoldenLion - 30.11.2016, 05:12
Re: Gang name beside Player name :/ - by jlalt - 30.11.2016, 05:37

Forum Jump:


Users browsing this thread: 1 Guest(s)