Destroy cars after they spawned
#1

I want a command that will destroy the spawned cars but have no idea how
pawn Code:
CMD:eveh(playerid, params[])
{
    new vehid;
    if(sscanf(params, "i", vehid)) SendClientMessage(playerid, Red, Use: /eveh <car id>");
    else
    {
        new Float:x, Float:y, Float:z;new Float:angle;
        GetPlayerFacingAngle(playerid,angle);
        GetPlayerPos(playerid, x, y, z);
        CreateVehicle(vehid, x + 5, y +2, z, angle-180, 1,1, 60000);
        CreateVehicle(vehid, x + 5, y -2, z, angle-180, 2,2, 60000);
       
        CreateVehicle(vehid, x + 11, y +2, z, angle-180, 3,3, 60000);
        CreateVehicle(vehid, x + 11, y -2, z, angle-180, 4,4, 60000);
       
        CreateVehicle(vehid, x + 17, y +2, z, angle-180, 5,5, 60000);
        CreateVehicle(vehid, x + 17, y -2, z, angle-180, 6,6, 60000);
       
    }
    return 1;
}
Reply


Messages In This Thread
Destroy cars after they spawned - by MarinacMrcina - 04.06.2012, 20:34
Re: Destroy cars after they spawned - by milanosie - 04.06.2012, 20:34
Re: Destroy cars after they spawned - by MarinacMrcina - 04.06.2012, 20:37
Re: Destroy cars after they spawned - by leonardo1434 - 04.06.2012, 20:45
Re: Destroy cars after they spawned - by MarinacMrcina - 04.06.2012, 21:02
Re: Destroy cars after they spawned - by milanosie - 04.06.2012, 21:10
Re: Destroy cars after they spawned - by leonardo1434 - 04.06.2012, 21:16
Re: Destroy cars after they spawned - by FalconX - 04.06.2012, 21:26
Re: Destroy cars after they spawned - by leonardo1434 - 04.06.2012, 21:37
Re: Destroy cars after they spawned - by milanosie - 04.06.2012, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)