27.05.2010, 15:35
On top of script
On GamemodeInit()
Somewhere in your script
Under your robbank command
Код:
forward CopsOnLine();
Код:
new cops;
SetTimer("CopsOnLine",1000,1);
Код:
public CopsOnLine()
{
new i;
for(i=0;i<MAX_PLAYERS;i++)
{
if(gTeam[i]==TEAM_COPS)
{
cops++;
}
}
}
Код:
if(cops<3) SendClientMessage(playerid,0xff0000aa,"Not enough cops online"); //then the rest of your script.

