24.06.2011, 01:10
Код:
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; }
I looked at other scripts they dont have anything under OnVehDeath...
So whats happening?