[Help] New Vegas Gamemode
#1

I have installed this gamemode on server
but in this gamemode,once you buy a car in carshop ,you have it forever?HOW ??

Even if i destroy car,it will get respawned again ?
How to remove this OP feature!?
Normally,i want players to buy a car ,but if they blow it up,they have to buy one again.?
Reply
#2

I'm not downloading the gamemode just so I can read the code, you'll have to post what is relevant if you want specific help. Basically, you want to remove the car from the system on OnVehicleDeath, although it's suggestible that you only disable it and not completely remove it in case of a refund/the vehicle destruction being voided (although that's just my two cents).
Reply
#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
#4

Errrr ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)