22.01.2011, 00:05
new obect;
I use in a command:
Command for removal of objects:
Deletes only one object
How to make that deleted all objects?
I use in a command:
Код:
if(strcmp(cmd, "/com", true) == 0) { obect = CreateObject(18690, 280.996704, 1876.698120, 14.849337, 90.2407954, -2.57831008, 1.71887339); obect = CreateObject(18690, -2794.0922851563, -12.043877601624, 9.0996828079224, 0, 0, 270.67565917969); obect = CreateObject(18690, -2793.998046875, -13.272877693176, 9.0931529998779, 0, 0, 270.67565917969); obect = CreateObject(18690, -2793.4816894531, -15.914033889771, 6.9843993186951, 0, 0, 272.66064453125); obect = CreateObject(18690, -2794.2727050781, -17.160186767578, 9.304069519043, 0, 0, 270.67565917969); obect = CreateObject(18690, -2792.0141601563, -17.860973358154, 6.7548785209656, 0, 0, 270.67565917969); return 1; }
Код:
if(strcmp(cmd, "/deletecom", true) == 0) { DestroyObject(obect); return 1; }
How to make that deleted all objects?