Viem, dnes už druhý Topic, ale mám problém s zobrazovaním Online Adminov. Ked nejaký hráč je Admin, a odíde, zostane po nom riadok, Pod Nickom je Hlavný Administrátor a Hodnosť nič.. Na VIP to isté (sú urobené na ten instý spôsob) A ten Dialog je od SkiBig18 (Nebol to Copy & Paste s SAdmin)
YCMD:admins(playerid, params[], help) {
new
sString[1000],
sNick[MAX_PLAYER_NAME + 1],
bool: bIsAdmin = false;
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) {
if (PlayerInfo[i][pAdmin] > 0) {
GetPlayerName(i, sNick, sizeof(sNick));
format(sString, sizeof(sString), "%s\n%s\t%s\n", sString, sNick, sAdminRanks[PlayerInfo[i][pAdmin]]);
bIsAdmin = true;
}
}
format(sString, sizeof(sString), "Administrátor\tFunkcia\n%s", sString);
if bIsAdmin *then return ShowPlayerDialog(playerid, 1893, DIALOG_STYLE_TABLIST_HEADERS, "Online Administrátori", sString, "Zavrit", "");
else SendClientMessage(playerid, -1, ""r"< Chyba > "w"Žiadny Administrátor nie je momentálne online !");
return (true);
}
Dotaz
Guyy 14
Ahoj
Viem, dnes už druhý Topic, ale mám problém s zobrazovaním Online Adminov. Ked nejaký hráč je Admin, a odíde, zostane po nom riadok, Pod Nickom je Hlavný Administrátor a Hodnosť nič.. Na VIP to isté (sú urobené na ten instý spôsob) A ten Dialog je od SkiBig18 (Nebol to Copy & Paste s SAdmin)
Link to comment
Share on other sites
8 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now