HELP WITH CODE
#1

I want to write a code that if some car destroyed by a player 3 times
the car will been delete...

where should i will write the code in what public?
Reply
#2

Код:
new VehicleDeaths[MAX_VEHICLES];
public OnVehicleDeath(blablabla);
{
  VehicleDeaths[vehicleid]++;
  if(VehicleDeaths[vehicleid]>=3)
  {
    DestroyVehicle(vehicleid,some more params maybe.. don't know)
  }
}
This works if vehicle is destroyed 3 times, but it wouldn't check if 3 times is specialy from one player, that would be waste of ram, though easy possible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)