Remove Cars -
luckie12 - 16.05.2014
How can i remove the cars
Код:
camp = AddStaticVehicle(508,1062.0916,-1772.6073,13.7336,90.4973,1,1); // camp1
camp = AddStaticVehicle(508,1062.3016,-1743.2290,13.8406,90.1196,1,1); // camp2
camp = AddStaticVehicle(508,1078.5748,-1763.8075,13.7474,90.0422,1,1); // camp3
camp = AddStaticVehicle(508,1078.6036,-1772.6672,13.7266,90.4532,1,1); // camp4
camp = AddStaticVehicle(508,1099.2556,-1769.7153,13.7213,270.7111,1,1); // camp5
camp = AddStaticVehicle(508,1099.2236,-1754.8995,13.7264,270.2188,1,1); // camp6
only those cars.... searched all over the net.
Re: Remove Cars -
Nathan_Taylor - 16.05.2014
They won't spawn unless you put the code in. If you don't want them to spawn, just delete that code.
Re: Remove Cars -
luckie12 - 16.05.2014
i mean with a command ingame, lol
Re: Remove Cars -
Nathan_Taylor - 16.05.2014
Well, to begin wih, they can't be named the same thing, so do this
pawn Код:
new camp1 = AddStaticVehicle(508,1062.0916,-1772.6073,13.7336,90.4973,1,1); // camp1
new camp2 = AddStaticVehicle(508,1062.3016,-1743.2290,13.8406,90.1196,1,1); // camp2
new camp3 = AddStaticVehicle(508,1078.5748,-1763.8075,13.7474,90.0422,1,1); // camp3
new camp4 = AddStaticVehicle(508,1078.6036,-1772.6672,13.7266,90.4532,1,1); // camp4
new camp5 = AddStaticVehicle(508,1099.2556,-1769.7153,13.7213,270.7111,1,1); // camp5
new camp6 = AddStaticVehicle(508,1099.2236,-1754.8995,13.7264,270.2188,1,1); // camp6
Command under OnPlayerCommandText()
pawn Код:
if (strcmp("/removecampvehicles", cmdtext, true, 20) == 0)
{
DestroyVehicle(camp1);
DestroyVehicle(camp2);
DestroyVehicle(camp3);
DestroyVehicle(camp4);
DestroyVehicle(camp5);
DestroyVehicle(camp6);
return 1;
}
This command is using ZCMD,
pawn Код:
CMD:removecampvehicles(playerid, params[])
{
DestroyVehicle(camp1);
DestroyVehicle(camp2);
DestroyVehicle(camp3);
DestroyVehicle(camp4);
DestroyVehicle(camp5);
DestroyVehicle(camp6);
return 1;
}