23.06.2010, 09:27
Код:
switch(PnSCMIndex[playerid]) { case 1: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 2: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 3: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 4: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 5: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 6: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 7: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 8: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 9: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 10: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 11: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]-1,PnSCMIndex[playerid]-1); case 12: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 13: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 14: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 15: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 16: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 17: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 18: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 19: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid],PnSCMIndex[playerid]); case 20: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+1,PnSCMIndex[playerid]+1); case 21: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+1,PnSCMIndex[playerid]+1); case 22: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+3,PnSCMIndex[playerid]+3); case 23: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+5,PnSCMIndex[playerid]+5); case 24: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+6,PnSCMIndex[playerid]+6); case 25: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+6,PnSCMIndex[playerid]+6); case 26: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+6,PnSCMIndex[playerid]+6); case 27: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+6,PnSCMIndex[playerid]+6); case 28: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+8,PnSCMIndex[playerid]+8); case 29: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+11,PnSCMIndex[playerid]+11); case 30: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+11,PnSCMIndex[playerid]+11); case 31: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+11,PnSCMIndex[playerid]+11); case 32: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+11,PnSCMIndex[playerid]+11); case 33: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+11,PnSCMIndex[playerid]+11); case 34: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+12,PnSCMIndex[playerid]+12); case 35: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+14,PnSCMIndex[playerid]+14); case 36: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+15,PnSCMIndex[playerid]+15); case 37: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+16,PnSCMIndex[playerid]+16); case 38: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+16,PnSCMIndex[playerid]+16); case 39: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+20,PnSCMIndex[playerid]+20); case 40: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+21,PnSCMIndex[playerid]+21); case 41: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+24,PnSCMIndex[playerid]+24); case 42: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+26,PnSCMIndex[playerid]+26); case 43: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+28,PnSCMIndex[playerid]+28); case 44: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+33,PnSCMIndex[playerid]+33); case 45: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+34,PnSCMIndex[playerid]+34); case 46: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+38,PnSCMIndex[playerid]+38); case 47: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+38,PnSCMIndex[playerid]+38); case 48: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+38,PnSCMIndex[playerid]+38); case 49: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+42,PnSCMIndex[playerid]+42); case 50: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+42,PnSCMIndex[playerid]+42); case 51: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+42,PnSCMIndex[playerid]+42); case 52: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+42,PnSCMIndex[playerid]+42); case 53: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+45,PnSCMIndex[playerid]+45); case 54: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+50,PnSCMIndex[playerid]+50); case 55: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+51,PnSCMIndex[playerid]+51); case 56: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+52,PnSCMIndex[playerid]+52); case 57: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+53,PnSCMIndex[playerid]+53); case 58: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+53,PnSCMIndex[playerid]+53); case 59: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+55,PnSCMIndex[playerid]+55); case 60: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+58,PnSCMIndex[playerid]+58); case 61: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+58,PnSCMIndex[playerid]+58); case 62: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+61,PnSCMIndex[playerid]+61); case 63: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+63,PnSCMIndex[playerid]+63); case 64: ChangeVehicleColor(GetPlayerVehicleID(playerid),PnSCMIndex[playerid]+63,PnSCMIndex[playerid]+63); }