Código:
HideEmail(source[], ignore = 4) {
for (new i = strfind(source, "@") - 1 - ignore; i > -1; i--) {
source[i] = '*';
}
}
Código:
new email[] = "portal@samp.com";
HideEmail(email);
print(email); // **rtal@samp.com
HideEmail(email, 2);
print(email); // ****al@samp.com