how to make /members without bug
#4

Try like this..
pawn Код:
#define member(%0) ( return PlayerInfo[%0][pMember] )

YCMD:members(playerid, params[], help)
{
   if(!member(playerid))
      return 1;
   SendClientMessage(playerid, -1, "______ MEMBERS ________");
   foreach(Player, i)
   {
       if(member(i,member(playerid))
       new string[16+MAX_PLAYER_NAME], name[24];
       GetPlayerName(i, name, 24);
       format(string, 40, "- %s", name);
       SendClientMessage(playerid, -1, string);
   }
   SendClientMessage(playerid, -1, "______________________");
 
   return true;
}
Reply


Messages In This Thread
how to make /members without bug - by Lloyde - 16.11.2013, 22:30
Re: how to make /members without bug - by DeStunter - 16.11.2013, 22:37
Re: how to make /members without bug - by ***Niko*** - 16.11.2013, 22:41
Re: how to make /members without bug - by erminpr0 - 16.11.2013, 22:47
Re: how to make /members without bug - by Lloyde - 17.11.2013, 00:04
Re: how to make /members without bug - by ***Niko*** - 17.11.2013, 00:28

Forum Jump:


Users browsing this thread: 2 Guest(s)