21.07.2013, 14:04
Hello.
How to add VehicleID line there?:
How to add VehicleID line there?:
Код:
{ for(new x=0;x<MAX_GRACZY;x++){ if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_DRIVER){ new veh = GetPlayerVehicleID(x); CanNitro[x] = false; if(HaveNitro[veh]) CanNitro[x] = true; if(!CarInfoChce[x]) continue; if(RaceMen[x]){ new bla = RaceCheck[x]-1; if(bla < 0) bla = 0; new model = GetVehicleModel(veh); new Float:fX,Float:fY,Float:fZ,Float:heal; GetVehicleVelocity(veh,fX,fY,fZ); new speed = floatround(floatmul(floatmul(fX, fX) + floatmul(fY, fY) + floatmul(fZ, fZ), 190)); GetVehicleHealth(veh,heal); heal = ((heal-250)/750)*100; new dmg = floatround(heal); if(dmg < 0) dmg = 0; if(dmg > 100) dmg = 100; new str[128]; format(str,sizeof(str),"%s~n~~w~Szybkosc: ~g~%d km/h~n~~w~Stan HP: ~g~%d/100~n~~w~Checkpoint: ~y~%d/%d~n~~w~Miejsce: ~r~%d/%d",CarList[model-400],speed,dmg,RaceCheck[x],CPliczba,ActualPos[x],RaceMenLiczba); TextDrawSetString(CarInfo[x],str); }else{ new model = GetVehicleModel(veh); new Float:fX,Float:fY,Float:fZ,Float:heal; GetVehicleVelocity(veh,fX,fY,fZ); new speed = floatround(floatmul(floatmul(fX, fX) + floatmul(fY, fY) + floatmul(fZ, fZ), 190)); GetVehicleHealth(veh,heal); heal = ((heal-250)/750)*100; new dmg = floatround(heal); if(dmg < 0) dmg = 0; if(dmg > 100) dmg = 100; new str[128]; if(VehicleLocked[veh] >= 0 && HaveNitro[veh]){ format(str,sizeof(str),"%s~n~~w~Szybkosc: ~g~%d km/h~n~~w~Stan HP: ~g~%d/100~n~~w~Zamkniety: ~r~tak~n~~w~Nitro: ~r~tak",CarList[model-400],speed,dmg); }else if(VehicleLocked[veh] >= 0 && !HaveNitro[veh]){ format(str,sizeof(str),"%s~n~~w~Szybkosc: ~g~%d km/h~n~~w~Stan HP: ~g~%d/100~n~~w~Zamkniety: ~r~tak~n~~w~Nitro: ~g~nie",CarList[model-400],speed,dmg); }else if(VehicleLocked[veh] < 0 && HaveNitro[veh]){ format(str,sizeof(str),"%s~n~~w~Szybkosc: ~g~%d km/h~n~~w~Stan HP: ~g~%d/100~n~~w~Zamkniety: ~g~nie~n~~w~Nitro: ~r~tak",CarList[model-400],speed,dmg); }else if(VehicleLocked[veh] < 0 && !HaveNitro[veh]){ format(str,sizeof(str),"%s~n~~w~Szybkosc: ~g~%d km/h~n~~w~Stan HP: ~g~%d/100~n~~w~Zamkniety: ~g~nie~n~~w~Nitro: ~g~nie",CarList[model-400],speed,dmg); } TextDrawSetString(CarInfo[x],str); } }else{ CanNitro[x] = false; } } return 1; }