08.01.2012, 14:40
(
Последний раз редактировалось Konstantinos; 14.01.2012 в 13:02.
)
pawn Код:
#include <zcmd>
#include <foreach>
CMD:admins(playerid, params[])
{
new string[128], CountAdmins, Name[MAX_PLAYER_NAME];
foreach(Player, i) {
GetPlayerName(i, Name, sizeof(Name));
if(PlayerInfo[i][AdminLevel] >= 1) {
CountAdmins = 1;
}
}
if(CountAdmins == 1) {
SendClientMessage(playerid, COLOR, "Admins Online List");
foreach(Player, i) {
if(PlayerInfo[i][AdminLevel] >= 1) {
format(string, sizeof(string), "Admin: %s (ID: %d) - Level: %d", Name, i, PlayerInfo[i][AdminLevel]);
SendClientMessage(playerid, COLOR, string);
}
}
}
if(CountAdmins == 0) SendClientMessage(playerid, COLOR, "There are no currently Admins online!");
CountAdmins = 0;
return 1;
}
Quote:
https://sampforum.blast.hk/showthread.php?tid=298218
and welcome back!! |