Započeo ...Nikola...
•29. Feb. 2012.• Zaključano[Pomoc] Warninzi
821
pregleda
4
postova
Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
29. Feb. 2012.
if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/admini", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, SVETLOPLAVA, "__________Online Administratori__________");
foreach (Player, i)
{
if(PlayerInfo >= 1 && PlayerInfo < 1338)
{
new admtext;
if(PlayerInfo == 1337) { admtext = "1337"; }
else if(PlayerInfo == 4) { admtext = "4"; }
else if(PlayerInfo == 3) { admtext = "3"; }
else if(PlayerInfo == 2) { admtext = "2"; }
else if(PlayerInfo == 1) { admtext = "1"; }
else { admtext = "1"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 1)
{
format(string, 256, "{F81414}Admin: {FFFFFF}%s | {00C0FF}Level: {FFFFFF}", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
format(string, 256, "{F81414}Admin: {FFFFFF}%s | {00C0FF}Level: {FFFFFF}%s ", sendername, admtext);
SendClientMessage(playerid, COLOR_WHITE, string);
}
SendClientMessage(playerid, SVETLOPLAVA, "_________________________________________");
}
else
{
ShowPlayerDialog(playerid,5002,DIALOG_STYLE_MSGBOX,"{F81414}__________Admini online__________\n","{FFFFFF}Nema online helpera !!","Close","");}
}
}
return 1;
}Probaj ovak
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
762
Postovi:
20
Teme:
Pridružio se:Sep. 2011
29. Feb. 2012.
if(strcmp(cmd, "/admins, true) == 0 || strcmp(cmd, "/admini", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new count = 0; new ime;
SendClientMessage(playerid, COLOR_YELLOW, "_________ ONLINE ADMINI ________");
for(new i; i< MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo > 0 && PlayerInfo < 1338)
{
GetPlayerName(i, ime, sizeof(ime));
format(string, sizeof(string), " Administrator: %s, Level: %d", ime, PlayerInfo)
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, " *Nema online Admina!");
return 1;
}
SendClientMessage(playerid, COLOR_YELLOW, "__________________________");
}
return 1;
}
eto komanda sad je ispisao ako ima bug javi 🙂
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava