how to change the player's name on spawn?
#10

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
PHP код:
OnPlayerConnect(playerid)
{
    
GetPlayerName(playerid,RealName[playerid],28); 
so we have a real name now.
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); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)