16.11.2013, 22:47
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;
}