22.10.2014, 09:04
pawn Code:
#include foreach // For Iterator
new Iterator:LSPD_Members<MAX_PLAYERS>;
CMD:factions(playerid, params[])
{
Iter_Add(LSPD_Members, playerid ); // we added a player
SendClientMessage(playerid, COLOR_BLUE, "(1)LSPD[Members: %d/45][Online ]",Iter_Count(LSPD_Members)); // Counted the members
return 1;
}
to make an exit cmd use these to remove
// Iter_Remove(LSPD_Members, playerid );
// Iter_Clear(LSPD_Members);