14.03.2009, 20:22
hi.I am woondering if it is possabole in zAdmin to put like /admins the you see who Admins are Online?
dcmd_admins(playerid,params[]){ #pragma unused params if(Options[Language]==1)SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** Admins Connessi: ***"); if(Options[Language]==2)SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** Admins Online: ***");else for(new i=0;i<200;i++){ if(IsPlayerConnected(i)){ if(Account[i][pAdminlevel]>=1){ new name2[24]; GetPlayerName(i, name2, sizeof(name2)); if(Options[Language]==1)format(str, sizeof(str), "- %s | (id: %d) | [Livello: %d]", name2, i, Account[i][pAdminlevel]), SendClientMessage(playerid, COLOR_WHITE, str);else if(Options[Language]==2)format(str, sizeof(str), "- %s | (id: %d) | [Level: %d]", name2, i, Account[i][pAdminlevel]), SendClientMessage(playerid, COLOR_WHITE, str);}}} return 1;}