Get old PlayerName after changed by SetPlayerName ??
#2

Is the name:

Weirdosport[Grove]

pawn Code:
GetPlayerName(playerid, Name, sizeof(Name));
strdel(string, strlen(string)-7, strlen(string));
SetPlayerName(playerid, Name);
_________________________________________________

[Grove]Weirdosport?

pawn Code:
GetPlayerName(playerid, Name, sizeof(Name));
strdel(Name, 0, 7);
SetPlayerName(playerid, Name);
The second is easier, but the first isn't impossible.

Of course for different gang tags you'd have to change the number 7.



[Grove]


1234567



To suit the gang-tag length.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)