Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd:admini(playerid) {
- if(Stats[playerid][Admin]<1) return SendClientMessage(playerid,0xBFC0C2FF,!"Niste ovlasceni da koristite tu komandu!");
- new str1[256],str2[2048];
- strcat(str2,"\nLISTA ONLINE ADMINA:\n\n");
- foreach(new i:Player)
- {
- if(Stats[i][Admin]>0&&IsPlayerConnected(i))
- {
- if(AdminDuty[i]==0)
- {
- if(Stats[i][Admin]==1)
- {
- format(str1,sizeof(str1),"[ Admin ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==2)
- {
- format(str1,sizeof(str1),"[ Admin 2 ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==3)
- {
- format(str1,sizeof(str1),"[ Admin 3 ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==4)
- {
- format(str1,sizeof(str1),"[ Glavni Admin ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==5)
- {
- format(str1,sizeof(str1),"[ Direktor ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==6)
- {
- format(str1,sizeof(str1),"[ Vlasnik ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==7)
- {
- format(str1,sizeof(str1),"[ Skripter ] %s [ - ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- }
- if(AdminDuty[i]==1)
- {
- if(Stats[i][Admin]==1)
- {
- format(str1,sizeof(str1),"[ Admin ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==2)
- {
- format(str1,sizeof(str1),"[ Admin 2 ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==3)
- {
- format(str1,sizeof(str1),"[ Admin 3 ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==4)
- {
- format(str1,sizeof(str1),"[ Glavni Admin ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==5)
- {
- format(str1,sizeof(str1),"[ Direktor ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==6)
- {
- format(str1,sizeof(str1),"[ Vlasnik ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- if(Stats[i][Admin]==7)
- {
- format(str1,sizeof(str1),"[ Skripter ] %s [ Na duznosti ] ",Player_Name(i),AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- }
- }
- }
- strcat(str2,"\nLISTA SVIH ADMINA:\n\n");
- for(new i=1; i<MAX_ADMINS; i++)
- {
- format(str1,sizeof(str1),"Slot: %d | Admin: %s |",i,AdminInfo[i][aAdmin]);
- strcat(str2,str1);
- strcat(str2,"\n");
- }
- VM_ShowPlayerDialog(playerid,DIALOG_NONE,DIALOG_STYLE_MSGBOX,"Lista Admina",str2,"U redu","");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment