27.05.2010, 20:35
Quote:
Originally Posted by DJDhan
On top of script
Код:
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. |
Код:
public CopsOnLine() { cops = 0; new i; for(i=0;i<MAX_PLAYERS;i++) { if(gTeam[i]==TEAM_COPS) { cops++; } } }