help me with this [got ss pls check]
#8

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);
not tested but i think its all you need "Correct me if i am wrong".
Reply


Messages In This Thread
help me with this [got ss pls check] - by Diti1 - 21.10.2014, 19:58
Re: help me with this [got ss pls check] - by Mark_Weston - 21.10.2014, 20:03
Re: help me with this [got ss pls check] - by Diti1 - 21.10.2014, 20:08
Re: help me with this [got ss pls check] - by dominik523 - 21.10.2014, 20:13
Re: help me with this [got ss pls check] - by Diti1 - 21.10.2014, 20:39
Re: help me with this [got ss pls check] - by Diti1 - 22.10.2014, 05:21
Re: help me with this [got ss pls check] - by Steel_ - 22.10.2014, 06:53
Re: help me with this [got ss pls check] - by gurmani11 - 22.10.2014, 09:04
Re: help me with this [got ss pls check] - by Diti1 - 22.10.2014, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)