24.02.2013, 18:40
Guys, Today I came here to ask if you help me put my / admins in Dialog!
My / admins:
Who can help me thank !
My / admins:
Код:
if(!strcmp(cmdtext, "/admins", true)) { new count=0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)){ if(admin[i]){ new str[256]; new pname[24]; GetPlayerName(i, pname, 24); format(file2, sizeof(file2), PASTA_CONTAS, pname); if(pAdmin[i] == 1){ format(str,sizeof(str),"{21E000}%s (%d) :: {21E000}[Tutor]", pname,i); } if(pAdmin[i] == 2){ format(str,sizeof(str),"{3838FF}%s (%d) :: {3838FF}[Administrador]", pname,i); } if(pAdmin[i] == 3){ format(str,sizeof(str),"{E5FF00}%s (%d) :: {E5FF00}[Administrador Senior]", pname,i); } if(pAdmin[i] == 4){ format(str,sizeof(str),"{7418FF}%s (%d) :: {7418FF}[Sub-Dono]", pname,i); } if(pAdmin[i] == 5){ format(str,sizeof(str),"{F80018}%s (%d) :: {F80018}[Dono]", pname,i); } SendClientMessage(playerid, 0x0080FFAA, str); count++; } } } if(count == 0) { SendClientMessage(playerid, Vermelho, "(ERRO) Nгo hб administradores online no momento"); } return 1; }