- Регистрация
- 20 Дек 2015
- Сообщения
- 242
- Лучшие ответы
- 0
- Репутация
- -10
Можно как-то сделать лучше и короче ? Урон
PHP:
//########################################[Òåõíèê]##############################
if(pInfo[playerid][pHumanClass] == Texnic2 && weaponid == 25) amount += 1;
else if(pInfo[playerid][pHumanClass] == Texnic3 && weaponid == 25) amount = 3;
else if(pInfo[playerid][pHumanClass] == Texnic4 && weaponid == 25) amount += 5;
//id 26
else if(pInfo[playerid][pHumanClass] == Texnic5 && weaponid == 26) amount += 1;
else if(pInfo[playerid][pHumanClass] == Texnic6 && weaponid == 26) amount += 3;
else if(pInfo[playerid][pHumanClass] == Texnic7 && weaponid == 26) amount += 5;
else if(pInfo[playerid][pHumanClass] == Texnic8 && weaponid == 26) amount += 7;
else if(pInfo[playerid][pHumanClass] == Texnic9 && weaponid == 26) amount += 9;
//id27
else if(pInfo[playerid][pHumanClass] == Texnic10 && weaponid == 27) amount += 1;
//==============================================================================
//########################################[Ñíèïåð]##############################
else if(pInfo[playerid][pHumanClass] == Sniper2 && weaponid == 24) amount += 1;
else if(pInfo[playerid][pHumanClass] == Sniper3 && weaponid == 24) amount = 3;
else if(pInfo[playerid][pHumanClass] == Sniper4 && weaponid == 24) amount += 5;
//id 31
else if(pInfo[playerid][pHumanClass] == Sniper5 && weaponid == 31) amount += 1;
else if(pInfo[playerid][pHumanClass] == Sniper6 && weaponid == 31) amount += 3;
else if(pInfo[playerid][pHumanClass] == Sniper7 && weaponid == 31) amount += 5;
else if(pInfo[playerid][pHumanClass] == Sniper8 && weaponid == 31) amount += 7;
else if(pInfo[playerid][pHumanClass] == Sniper9 && weaponid == 31) amount += 9;
//id34
else if(pInfo[playerid][pHumanClass] == Sniper10 && weaponid == 34) amount += 1;