How to lock car? and INF Vehicle HP
#6

Quote:
Originally Posted by Neo Karls
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetVehicleHealth
Try setting the value of health to a large value.

You need to get the Vehicle id(Plate) to destroy the cars that you have spawned
it will be like this

example:-

pawn Код:
new CreatedCars[100];
if the createdcar vehicle id is stored

pawn Код:
CMD:destroycars(playerid, params[])
      for(new i = 0; i < sizeof(CreatedCars); i++) {
        if(CreatedCars[i] != INVALID_VEHICLE_ID) {
            DestroyVehicle(CreatedCars[i]);
            CreatedCars[i] = INVALID_VEHICLE_ID;
        }
    }
    SendClientMessageEx(playerid, COLOR_GREY, "   Created vehicles destroyed!");
    return 1;
here is example of lock system
http://pastebin.com/f104e7ce2
I am a beginner for using pawno and dont know where to put stuff and I meant destroy car when you spawn another car, so when you are currently in a vehicle and you spawn another vehicle, your other vehicle will disappear.... and I am confused with lock system and also about the car health, i meant no damage as in repairing itself straight away when it takes damage
Reply


Messages In This Thread
How to lock car? and make car undamagable - by NeymarJr - 04.06.2012, 10:10
Re: How to lock car? and INF Vehicle HP - by Neo Karls - 04.06.2012, 11:55
Re: How to lock car? and INF Vehicle HP - by CoaPsyFactor - 04.06.2012, 11:59
Re: How to lock car? and INF Vehicle HP - by NeymarJr - 05.06.2012, 06:52
Re: How to lock car? and INF Vehicle HP - by NeymarJr - 05.06.2012, 06:55
Re: How to lock car? and INF Vehicle HP - by NeymarJr - 05.06.2012, 07:00
Re: How to lock car? and INF Vehicle HP - by NeymarJr - 05.06.2012, 09:36
Re: How to lock car? and INF Vehicle HP - by NeymarJr - 05.06.2012, 10:40
Re: How to lock car? and INF Vehicle HP - by NeymarJr - 06.06.2012, 08:35
Re: How to lock car? and INF Vehicle HP - by Riddick94 - 06.06.2012, 10:05

Forum Jump:


Users browsing this thread: 2 Guest(s)