team slot
Posted: 2011 Jul 26 00:25
Kaip supaprastinti toki koda?
Code: Select all
case 0..2: { if(iCTs <= 0) { menu_additem(menu_team, "\wGo to the guards", "1", 0); } else { menu_additem(menu_team, "\dGo to the guards", "0", 1); } } case 3..4: { if(iCTs <= 1) { menu_additem(menu_team, "\wGo to the guards", "1", 0); } else { menu_additem(menu_team, "\dGo to the guards", "0", 1); } } case 5..7: { if(iCTs <= 2) { menu_additem(menu_team, "\wGo to the guards", "1", 0); } else { menu_additem(menu_team, "\dGo to the guards", "0", 1); } } case 8..10: { if(iCTs <= 3) { menu_additem(menu_team, "\wGo to the guards", "1", 0); } else { menu_additem(menu_team, "\dGo to the guards", "0", 1); } } case 11..18: { if(iCTs <= 4) { menu_additem(menu_team, "\wGo to the guards", "1", 0); } else { menu_additem(menu_team, "\dGo to the guards", "0", 1); } } default: { if(iCTs <= 6) { menu_additem(menu_team, "\wGo to the guards", "1", 0); } else { menu_additem(menu_team, "\dGo to the guards", "0", 0); } }