20.01.2012, 15:31
Creio que assim funcione:
pawn Код:
if(!strcmp(cmdtext, "/guardioes", true))
{
SendClientMessage(playerid,GREEN, "[»] .:: Guardioes Online ::. [»]");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(dini_Int(file, "Guardiao") == 1)
{
new str[30];
new pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, 35);
format(str,sizeof(str),"%s (%d)", pname,i);
SendClientMessage(playerid, COLOR_WHITE, str);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, Vermelho, "Nгo hб guardiхes online!");
}
return 1;
}