06.07.2010, 18:57
Only the first name, if you wan't do the last name then replace my edited code with this.
You obviously need the split function to use that. I'm not 100% if that will work or not.
pawn Код:
new splitname[2][MAX_PLAYER_NAME];
split(player, splitname, '_');
if (player[n] == '_' && splitname[0+1] >= 'A' && splitname[0+1] <= 'Z' && splitname[1+1] >= 'A' && splitname[1+1]<= 'Z') return 1;