How to destroy a vehicle?
#1

Is there a system to where i can destroy a vehicle by carid and/or destroy the vehicle that person is in?
Reply
#2

pawn Код:
new myvehicle

pawn Код:
public OnGameModeInit(playerid)
{
        myvehicle = CreateVehicle(blah,blah,blah);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmdtext, "/destroyveh", true) == 0)
     {
          DestroyVehicle(myvehicle);
          return 1;
      }
      return 0;
}
Reply
#3

Код:
    DestroyVehicle(veh);
But then do:

Код:
    new veh;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)