27.02.2010, 17:01
pawn Код:
public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
new var = strfind(Name, "_", true);
new NewName[MAX_PLAYER_NAME];
strmid(NewName, Name, 0, var, sizeof(NewName));
return true;
}