Destroy cars after they spawned
#4

That's how it should be, just a example.


pawn Code:
new lol;


CMD:eveh(playerid, params[])
{
    new vehid;
    if(sscanf(params, "i", vehid)) return SendClientMessage(playerid, Red, Use: /eveh <car id>");
    new Float:x, Float:y, Float:z;new Float:angle;
    GetPlayerFacingAngle(playerid,angle);
    GetPlayerPos(playerid, x, y, z);
    lol = CreateVehicle(vehid, x + 5, y +2, z, angle-180, 1,1, 60000);        
    return 1;
}
CMD:destroyveh(playerid, params[])
{
   DestroyVehicle(lol);
   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)