17.02.2013, 14:12
Good afternoon all
You could help me to place my / admins in dialog?
Who gets my help +REP '-'
You could help me to place my / admins in dialog?
Код:
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),"%s (%d) :: [Tutor]", pname,i); } if(pAdmin[i] == 2){ format(str,sizeof(str),"%s (%d) :: [Administrador]", pname,i); } if(pAdmin[i] == 3){ format(str,sizeof(str),"%s (%d) :: [Administrador Senior]", pname,i); } if(pAdmin[i] == 4){ format(str,sizeof(str),"%s (%d) :: [Sub-Dono]", pname,i); } if(pAdmin[i] == 5){ format(str,sizeof(str),"%s (%d) :: [Dono]", pname,i); } SendClientMessage(playerid, 0x0080FFAA, str); count++; } } } if(count == 0) { SendClientMessage(playerid, Vermelho, "(ERRO) Nгo hб administradores online no momento"); } return 1; }