[HELP] Onvehicledeath
#1

Код:
public OnVehicleDeath(vehicleid, killerid) {
	foreach(Player, v) {
		if(playerVariables[v][pCarID] == vehicleid) {
			DestroyVehicle(vehicleid); // If an owned car is destroyed... it'll be manually despawned...
			systemVariables[vehicleCounts][1]--;
			/*
			playerVariables[v][pCarPos][0] = 2157.5559; // ...moved to the LS junk yard...
			playerVariables[v][pCarPos][1] = -1977.6494;
			playerVariables[v][pCarPos][2] = 13.3835;
			playerVariables[v][pCarPos][3] = 177.3687;
   			*/

			SpawnPlayerVehicle(v);
			/*
			SetVehicleHealth(playerVariables[v][pCarID], 400.0); // A wrecked car is a wrecked car.

			new
				Damage[4]; // Complete the job!

			GetVehicleDamageStatus(playerVariables[v][pCarID], Damage[0], Damage[1], Damage[2], Damage[3]);

			Damage[0] = encode_panels(1, 1, 1, 1, 3, 3, 3);
			Damage[1] = encode_doors(4, 4, 4, 4);
			Damage[2] = encode_lights(1, 1, 1, 1);

			UpdateVehicleDamageStatus(playerVariables[v][pCarID], Damage[0], Damage[1], Damage[2], Damage[3]);
			*/
		}
	}
	return 1;
}
Basically when a "normal unowned car" exploded, it respawns where it exploded, so my question is, how does one make it that it respawns where it was initially set

I looked at other scripts they dont have anything under OnVehDeath...
So whats happening?
Reply


Messages In This Thread
[HELP] Onvehicledeath - by euRo - 24.06.2011, 01:10
Re: [HELP] Onvehicledeath - by =WoR=Varth - 24.06.2011, 01:15
Re: [HELP] Onvehicledeath - by euRo - 24.06.2011, 01:22
AW: [HELP] Onvehicledeath - by Nero_3D - 24.06.2011, 01:38
Re: [HELP] Onvehicledeath - by euRo - 24.06.2011, 01:43

Forum Jump:


Users browsing this thread: 1 Guest(s)