12.05.2010, 20:35
Not sure but, try with this code...
pawn Код:
new Tree[MAX_PLAYERS],Float:TreeX[MAX_PLAYERS],Float:TreeY[MAX_PLAYERS],Float:TreeZ[MAX_PLAYERS];
//In the commands..
new float:x,y,z;
GetPlayerPos(playerid,x,y,z);
Tree[playerid] = CreateObject(model,x,y,z,...);
TreeX[playerid] = x;
TreeY[playerid] = y;
TreeZ[playerid] = z;
if(IsPlayerInRangeOfPoint(playerid,10.0,TreeX,TreeY,TreeZ)) DestroyObject(Tree[playerid]);

