08.02.2018, 12:23
for first, you have to save player's real name or just filter it.
when player receives or gives point, just add the name changing script.
for example, let's start with name saving.
at the top we're adding a name variable, like this new RealName[MAX_PLAYERS];
than we're saving a name as a variable, when a player connects
so we have a real name now.
okay now we need to change a player's name when he receives or losts a points.
when player receives or gives point, just add the name changing script.
for example, let's start with name saving.
at the top we're adding a name variable, like this new RealName[MAX_PLAYERS];
than we're saving a name as a variable, when a player connects
PHP код:
OnPlayerConnect(playerid)
{
GetPlayerName(playerid,RealName[playerid],28);
okay now we need to change a player's name when he receives or losts a points.
PHP код:
new name[28];
format(name,28,"%d_%s",pInfo[playerid][pRespect],RealName[playerid]);
SetPlayerName(playerid,name);