16.05.2009, 21:01
im making a /ignore command, and it the ignore list doesn't work for id 0 but every other id (already tested)
any help?
any help?
pawn Код:
if(strcmp(cmdtext, "/ignorelist",true) == 0 || strcmp(cmdtext, "/il",true) == 0)
{
SendClientMessage(playerid, 0x2641FEAA, "Ignoring:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(MyIgnoredPlayers[playerid][i] >= 1)
{
GetPlayerName(i,playername,sizeof(playername));
format(string, sizeof(string), "%s (%d)", playername, i);
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "No One.");
return 1;
}
}
return 1;
}