10.07.2018, 11:20
My command:
Now.I want to get highest variable from them.How to do that?
Код:
CMD:guide(playerid) { new frplayer; new syplayer; new yjbsplayer; new jtlplayer; new bzcplayer; new scplayer; new pdfcplayer; new kzplayer; new d1player; new d2player; new fkzzplayer; new bphpplayer; new djjhplayer; new zjdzplayer; foreach(Player,i) { if(IsPlayerConnected(i)) { if(GameMode[i]==0) frplayer++; if(GameMode[i]==1) fkzzplayer++; if(GameMode[i]==2) fkzzplayer++; if(GameMode[i]==3) syplayer++; if(GameMode[i]==4) yjbsplayer++; if(GameMode[i]==5) jtlplayer++; if(GameMode[i]==6) bphpplayer++; if(GameMode[i]==7) bphpplayer++; if(GameMode[i]==9) djjhplayer++; if(GameMode[i]==10) bzcplayer++; if(GameMode[i]==11) pdfcplayer++; if(GameMode[i]==12) kzplayer++; if(GameMode[i]==13) d1player++; if(GameMode[i]==14) d2player++; if(GameMode[i]==15) scplayer++; if(GameMode[i]==16) zjdzplayer++; if(GameMode[i]==17) zjdzplayer++; SendClientMessage(playerid,-1,"loop"); } } //What`s next? return 1; }