23.08.2009, 14:35
I made a command like this...
But it doenst work...why...
Quote:
if(strcmp(cmdtext,"/destroy object",true)==0) { for(new i = 0;i<MAX_OBJECTS;i++) { new Floatos1,Floatos2,Floatos3; GetObjectPos(i, pos1,pos2,pos3); if(PlayerToPoint(5.0,playerid,pos1,pos2,pos3)) { DestroyObject(i); return 1; } } return 1; } |
But it doenst work...why...