10.11.2013, 01:07
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count = 0;
new string[128];
new ChangeColor;
SendClientMessage(playerid, white, " ");
SendClientMessage(playerid, white, "<<<<<<<<<<<<<-UD Centre ADMIN->>>>>>>>>>>>");
SendClientMessage(playerid, white, " ");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0)
{
if(AccInfo[i][Level] > 9)
{
AdmRank = "Server Owner";
ChangeColor = Color_Owner;
}
else
{
switch(AccInfo[i][Level])
{
case 1: {
AdmRank = "Helper";
ChangeColor = Color_Basic_vip;
}
case 2: {
AdmRank = "Mini Moderator";
ChangeColor = Color_VIP;
}
case 3: {
AdmRank = "Moderator";
ChangeColor = Color_Basic;
}
case 4: {
AdmRank = "Administrator";
ChangeColor = Color_Administrator;
}
case 5: {
AdmRank = "Head Administrator";
ChangeColor = Color_Head;
}
case 6: {
AdmRank = "Global Administrator";
ChangeColor = Color_best;
}
case 7: {
AdmRank = "Super Administrator";
ChangeColor = Color_Help;
}
case 8: {
AdmRank = "Host Owner [GTAFREEHOST.TK]";
ChangeColor = Color_Host;
}
case 9: {
AdmRank = "Co-Owner";
ChangeColor = Color_CoOwner;
}
}
}
switch(AccInfo[i][OnDuty])
{
case 0: AdmDuty = "Playing!";
case 1: AdmDuty = "On Duty!";
}
format(string, 128, "Level: %d - %s (Id:%i) | %s | %s",AccInfo[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
SendClientMessage(playerid, ChangeColor, string);
count++;
}
}
}
if (count == 0)
SendClientMessage(playerid,yellow,"No admin online ");
SendClientMessage(playerid, red, "<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
return 1;
}
Can Anyone Make This Help my To Dialog please i tryed but false becuz my ZCMD code didnt same