24.12.2014, 20:25
Something like this?
or
Credits go to this thread: https://sampforum.blast.hk/showthread.php?tid=328590
A search would've gave you an answer pretty fast(******.com).
pawn Код:
stock GetPlayerFirstName(playerid)
{
new NickName[MAX_PLAYER_NAME];
GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
strdel(NickName, strfind(NickName, "_"), strlen(NickName));
return NickName;
}
pawn Код:
sscanf(PlayerName,"s[24]'_'{s[24]}",FirstName);
A search would've gave you an answer pretty fast(******.com).