Hello friends. Can you help me add a Non-Steam prefix to this chat for players who play through non-steam. Thank you
Вложения
-
19.2 KB Просмотры: 17
if(!g_bSteamPlayer[sender])
{
len += formatex(text[len], charsmax(text) - len, "[^4Non-Steam^1] ");
}
stock const NON_STEAM_PREFIX[] = "^1[^4Non-Steam^1] "; //add
if(g_bSteamPlayer[sender]) {
len += formatex(text[len], charsmax(text) - len, "%s", STEAM_PREFIX);
} //delete
len += formatex(text[len], charsmax(text) - len, "%s", g_bSteamPlayer[sender] ? STEAM_PREFIX : NON_STEAM_PREFIX); //add
if(g_bSteamPlayer[sender]) {
len += formatex(text[len], charsmax(text) - len, "%s", STEAM_PREFIX);
}
else {
len += formatex(text[len], charsmax(text) - len, "[^4Non-Steam^1] ");
}
#endif