Need help with...
#1

Hi guys, I need your help with this script. So.. Better explain, Police job ID is 1, their car ID is 411 (for example), and I need to make pickup just for Police job, which spawns only 411 ID car.

If you'd like to help me, my skype ID is: elkatronas
Reply
#2

pawn Код:
new infernus;

//OnGameModeInIt
infernus = CreateDynamicPickup(1317, 1, X, Y ,Z);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == infernus)
    {          
              new infernuscar;
              new Float:X,Float:Y,Float:Z;
              infernuscar = CreateVehicle(411, X, Y, Z , 0, 0, 0,0);
              PutPlayerInVehicle(playerid, infernuscar, 0);
        }
return 1;
}
Reply
#3

I need it disappear in about 10minutes, and not respawning. When I do cmd /boom on that car, I want it disappear for ever, until I make new one one that pickup.
Reply
#4

okay, you're asking for too much
pawn Код:
//Under when you spawn the car
        SetTimerEx("DestroyCar",600000,false,"i",playerid);  //10 minutes timer

forward DestroyCar(playerid);  //destroy car timer
public DestroyCar(playerid)
{
          DestroyVehicle(infernuscar);
}

//command using ZCMD
CMD:boom(playerid,params[])
{
    #pragma unused params
         DestroyVehicle(infernuscar);
         return 1;
}
Reply
#5

Maybe yes xD

Here:

I want it to destroy, and not spawn again. :/
Reply
#6

DestroyVehicle does not respawn. His code does exactly what you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)