SA-MP Forums Destroy Object Node GPS?
 New Account Members List Search Today's Posts Mark Forums Read

 09/05/2012, 06:49 PM #1 Admigo High-roller     Join Date: Oct 2010 Location: The Netherlands Posts: 1,840 Reputation: 297 Destroy Object Node GPS? Heey all, I am using RouteConnecter for making a gps system. I made a test route but when i drive the wrong way the objects dont destroy. Example; Code: ```-//Arrows that i need to follow to go to my location -//Arrows that i need to follow to go to my location -//Arrows that i need to follow to go to my location ^//my car is driving to the arrows x//I passed this arrows so i need to delete those x//I passed this arrows so i need to delete those x//I passed this arrows so i need to delete those x//I passed this arrows so i need to delete those``` The Code for creating the arrows: Code: ```public GPS_WhenRouteIsCalculated(routeid,node_id_array[],amount_of_nodes,distance) { for(new i = 0; i < amount_of_nodes; ++i) { new Float:X,Float:Y,Float:Z,Float:A,Float:Ax,Float:Ay,Float:Az; GetNodePos(node_id_array[i],X,Y,Z); if(i < amount_of_nodes-3) { GetNodePos(node_id_array[i+3],Ax,Ay,Az); A =floatabs(270.0 - atan2( Ax-X,Ay-Y)); CreateDynamicObject(1318,X,Y,Z+0.2,0.0,90.0,A); }else if(i < amount_of_nodes-2) { GetNodePos(node_id_array[i+2],Ax,Ay,Az); A =floatabs(270.0 - atan2( Ax-X,Ay-Y)); CreateDynamicObject(1318,X,Y,Z+0.2,0.0,90.0,A); }else if(i < amount_of_nodes-1) { GetNodePos(node_id_array[i+1],Ax,Ay,Az); A =floatabs(270.0 - atan2( Ax-X,Ay-Y)); CreateDynamicObject(1318,X,Y,Z+0.2,0.0,90.0,A); } else { CreateDynamicObject(1318,X,Y,Z+0.2,0.0,0.0,0.0); } //printf("Point(%d)=NodeID(%d)",i,node_id_array[i]); } //Create(); SendClientMessage(routeid,-1,"Happy route!"); return 1; }``` How can i destroy the passed arrows? Thanks Admigo __________________ Follow me on Instagram @brandonvanommen Code: ```[Filterscript]Gametime + Gameday System 1.3[UPDATED 09/02/13] [Include][0.3z]a_OnPlayerShootVehiclePart```

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Gooday Scripting Help 4 14/03/2012 02:15 PM austin070 Scripting Help 6 19/10/2011 12:36 AM kurta999 Bug Reports 0 06/01/2011 03:08 PM 02manchestera Help Archive 7 28/03/2010 01:31 PM Danut Help Archive 5 07/03/2009 10:29 PM

All times are GMT. The time now is 11:31 AM.

 -- (EN) English -- (RU) Русски SA-MP - Archive - Top