Well its same with all the commands but I will post one here:
pawn Код:
if (strcmp("/admins",cmdtext,true) == 0)
{
SendClientMessage(playerid,red,"Admins online:");
if(IsPlayerNPC(playerid))
{
SendClientMessage(playerid,red,"-");
return 0;
}
for(new i = 0; i < MAX_PLAYERS; i++)
if(GetPVarInt(playerid,"Adminlevel")==1)
{
new string[256];
format(string,256,"{F5FF00}[Trial Administrator]-{00F5FF}%s",PlayerName(i));
SendClientMessage(playerid,red,string);
return 1;
}
else if(GetPVarInt(playerid,"Adminlevel")==2)
{
new string2[256];
format(string2,256,"{F5FF00}[General Administrator]-{00F5FF}%s",PlayerName(i));
SendClientMessage(playerid,red,string2);
return 1;
}
else if(GetPVarInt(playerid,"Adminlevel")==3)
{
new string3[256];
format(string3,256,"{F5FF00}[Senior Administrator]-{00F5FF}%s",PlayerName(i));
SendClientMessage(playerid,red,string3);
return 1;
}
else if(GetPVarInt(playerid,"Adminlevel")==4)
{
new string4[256];
format(string4,256,"{F5FF00}[Lead Administrator]-{00F5FF}%s",PlayerName(i));
SendClientMessage(playerid,red,string4);
return 1;
}
else if(GetPVarInt(playerid,"Adminlevel")==5)
{
new string5[256];
format(string5,256,"{F5FF00}[Head Administrator]-{00F5FF}%s",PlayerName(i));
SendClientMessage(playerid,red,string5);
return 1;
}
}