25.03.2012, 13:33
You can also use strdel to delete part of the player's name
:
I hope that i have helped
.

pawn Code:
stock GetPlayerFirstName(playerid)
{
new NickName[MAX_PLAYER_NAME];
GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
strdel(NickName, strfind(NickName, "_"), strlen(NickName));
return NickName;
}
I hope that i have helped
