Hallo!
Ich würde gerne eine Polizeikontrolle errichten...
Habe bis jetzt folgendes:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/polizeisperre", cmdtext, true, 10) == 0)
{
CreateObject(987, -1959.833984, 1316.102661, 6.184834, 0.0000, 0.0000, 90.0000);
CreateObject(987, -1959.869019, 1328.164429, 6.187500, 0.0000, 0.0000, 90.0000);
CreateObject(987, -1959.734131, 1340.133057, 6.184143, 0.0000, 0.0000, 90.0000);
CreateObject(987, -1987.277100, 1352.210205, 6.184143, 0.0000, 0.0000, 270.0000);
CreateObject(987, -1987.251831, 1340.230469, 6.184145, 0.0000, 0.0000, 270.0000);
CreateObject(987, -1987.225098, 1328.223389, 6.187500, 0.0000, 0.0000, 270.0000);
CreateObject(979, -1955.574219, 1314.049072, 6.879282, 0.0000, 0.0000, 22.5000);
CreateObject(979, -1953.337646, 1302.583740, 6.879282, 0.0000, 0.0000, 348.7500);
CreateObject(979, -1962.452393, 1305.257446, 6.887062, 0.0000, 0.0000, 337.5000);
CreateObject(979, -1964.471802, 1312.214844, 6.879282, 0.0000, 0.0000, 0.0000);
CreateObject(979, -1972.066162, 1307.263794, 6.879282, 0.0000, 0.0000, 180.0000);
CreateObject(979, -1973.437744, 1312.433716, 6.879282, 0.0000, 0.0000, 180.0000);
CreateObject(967, -1970.131470, 1313.392822, 6.258283, 0.0000, 0.0000, 0.0000);
CreateObject(1698, -1970.186157, 1313.347900, 6.132652, 0.0000, 0.0000, 270.0000);
CreateObject(1698, -1970.158081, 1314.726196, 6.157652, 0.0000, 0.0000, 270.0000);
CreateObject(3463, -1973.642944, 1323.871582, 6.606514, 0.0000, 0.0000, 180.0000);
CreateObject(3463, -1974.125244, 1328.718994, 6.556660, 0.0000, 0.0000, 180.0000);
CreateObject(3463, -1974.182861, 1333.667969, 6.556660, 0.0000, 0.0000, 180.0000);
CreateObject(3463, -1974.235107, 1338.294312, 6.556660, 0.0000, 0.0000, 180.0000);
CreateObject(968, -1969.822266, 1312.347900, 7.384593, 0.0000, 0.0000, 90.0000);
CreateObject(1697, -1955.593994, 1328.416016, 7.789379, 0.0000, 0.0000, 270.0000);
CreateObject(1444, -1959.688477, 1314.046143, 6.843750, 0.0000, 0.0000, 270.0000);
AddStaticVehicle(597,-1974.4478,1304.9286,6.8136,73.9355,1,16); // kontrolle
AddStaticVehicle(597,-1974.9675,1314.1409,6.8113,89.8008,0,1); // kontrolle
AddStaticVehicle(597,-1933.2209,1320.7426,7.0113,125.8022,1,16); // kontrolle
return 1;
}
return 0;
}
Wie kann ich diese Objekte per Befehl wieder entfernen ?