04.06.2012, 20:34
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;
}