30.11.2016, 02:18
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:
Similarly, the Mafia tag can then be removed with the strdel function. Example:
Example of usage:
pawn Код:
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
strins(playerName, "[Mafia] ", 0);
SetPlayerName(playerid, playerName);
pawn Код:
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
strdel(playerName, 0, 7);
SetPlayerName(playerid, playerName);

