[Help] New Vegas Gamemode
#3

Hello bro ,based on what you said i found this :

Quote:

public OnVehicleDeath(vehicleid, killerid)
{
if(IsShopVehicle[vehicleid] != -1)
{
new v = IsShopVehicle[vehicleid];
DestroyNeons(vehicleid);
DestroyVehicle(vehicleid);

new newveh = CreateVehicle(VehicleInfo[v][vModel], VehicleInfo[v][vPosX], VehicleInfo[v][vPosY], VehicleInfo[v][vPosZ], VehicleInfo[v][vPosA], VehicleInfo[v][vColor1], VehicleInfo[v][vColor2], 500000);
SetVehicleNumberPlate(newveh, VehicleInfo[v][vPlate]);
IsShopVehicle[newveh] = v;
SetVehicleHealth(newveh, 1000.0);
VehicleInfo[v][vHealth] = 1000.0;

VehicleInfo[v][vFuel] = 75 + random(25);

for(new m = 0; m < 12; m++)
{
if(GetVehicleMods[v][m] > 0)
{
AddVehicleComponent(newveh, GetVehicleMods[v][m]);
}
}

Reply


Messages In This Thread
[Help] New Vegas Gamemode - by Cyboorg - 27.05.2017, 14:14
Re: [Help] New Vegas Gamemode - by Abagail - 27.05.2017, 14:45
Re: [Help] New Vegas Gamemode - by Cyboorg - 27.05.2017, 15:33
Re: [Help] New Vegas Gamemode - by Cyboorg - 28.05.2017, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)