29.11.2013, 07:03
pawn Код:
stock CounterRadio(const string[])
{
foreach(Player, i)
{
if(GetPlayerState(i) != PLAYER_STATE_NONE)
{
if(GetPlayerClass[i] == TEAM_COUNTER)
{
SendClientMessage(i, BLUE, string);
}
}
}
return 1;
}
pawn Код:
#include <foreach>
The foreach thread can be found here if you do not already have the include file: https://sampforum.blast.hk/showthread.php?tid=92679
EDIT: StuartD, you were literally 1 or 2 seconds behind me, I couldn't believe that :P