[SOLVED]Createobjects and removeobject question.
#9

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]);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)