rendered paste bodyEncodeNick(playernick[])
{
new tmp[MAX_STRING];
set(tmp, strlower(playernick));
tmp = strreplace("_", "x00x", tmp);
tmp = strreplace(";", "x01x", tmp);
tmp = strreplace("!", "x02x", tmp);
tmp = strreplace("/", "x03x", tmp);
tmp = strreplace("\\", "x04x", tmp);
tmp = strreplace("[", "x05x", tmp);
tmp = strreplace("]", "x06x", tmp);
tmp = strreplace("?", "x07x", tmp);
tmp = strreplace(".", "x08x", tmp);
tmp = strreplace("*", "x09x", tmp);
tmp = strreplace("<", "x10x", tmp);
tmp = strreplace(">", "x11x", tmp);
tmp = strreplace("{", "x12x", tmp);
tmp = strreplace("}", "x13x", tmp);
tmp = strreplace(" ", "x14x", tmp);
tmp = strreplace("\"", "x15x", tmp);
tmp = strreplace(":", "x16x", tmp);
tmp = strreplace("|", "x17x", tmp);
tmp = strreplace("=", "x18x", tmp);
return tmp;
}
PlayerFile(playernick[])
{
new tmp[MAX_STRING];
format(tmp, sizeof(tmp), "%s%s.player", DIR_PLAYERS,EncodeNick(playernick));
return tmp;
}