count cops online
#2

pawn Код:
new count;
for(new i; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(i)) continue;
    if(PlayerInfo[i][profession] == COP) count ++;
}
printf("%d", count); //Will return the # of cops.
Reply


Messages In This Thread
count cops online - by aNdReSk - 15.07.2010, 01:15
Re: count cops online - by [HiC]TheKiller - 15.07.2010, 01:23
Re: count cops online - by aNdReSk - 15.07.2010, 02:26

Forum Jump:


Users browsing this thread: 1 Guest(s)