Remove Cars
#4

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;
}
Reply


Messages In This Thread
Remove Cars - by luckie12 - 16.05.2014, 17:07
Re: Remove Cars - by Nathan_Taylor - 16.05.2014, 17:10
Re: Remove Cars - by luckie12 - 16.05.2014, 17:26
Re: Remove Cars - by Nathan_Taylor - 16.05.2014, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)