Show VehicleID
#1

Hello.
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;
}
Reply


Messages In This Thread
Show VehicleID - by Levtu - 21.07.2013, 14:04
Re: Show VehicleID - by DobbysGamertag - 21.07.2013, 14:25
Re: Show VehicleID - by Levtu - 21.07.2013, 15:31
Re: Show VehicleID - by Twizted - 21.07.2013, 15:38
Re: Show VehicleID - by Levtu - 21.07.2013, 15:44
Re: Show VehicleID - by Levtu - 23.07.2013, 10:22
AW: Show VehicleID - by Macronix - 23.07.2013, 11:03
Re: Show VehicleID - by Levtu - 23.07.2013, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)