18.03.2014, 15:07
then you have to change my code to this:
this way it should work with your variables
pawn Код:
stock EMSOnline()
{
new dutycount = 0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerOnline(i))
{
if(PlayerInfo[i][pDuty] == 1)
{
dutycount++;
}
}
}
if(dutycount > 0)
{
return 1;
}
return 0;
}
