02.08.2012, 22:48
You'll have to loop trough all players and see if they are polices and if there are, you make a variable ++, like this:
Hope I helped
pawn Код:
//add this to your command
new polices;
for(new i = 0; i<MAX_PLAYERS; i++){
if(playerinfo[i[police] == 1){//make your variables here
polices ++;
}
}
if(polices < 15)return SendClientMessage(playerid, COLOR_ERROR, "There are not enought polices online at this moment, you can't rob a bank!");
