SA-MP Forums Archive
how to remove objectes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to remove objectes (/showthread.php?tid=443993)



how to remove objectes - InTeL_cOrE_i7 - 14.06.2013

how, when a player teleports, when they teleport to a certain place, lets say, /glassjump, when they type that command it create the objects and when they use /exit it removes the objects, but only the glassjump objects


Re: how to remove objectes - faff - 14.06.2013

DestroyObject(objid);


Re: how to remove objectes - Tamer - 14.06.2013

You must assign a variable for each glassobject,then use the DestroyObject(objectid); function

Example:

new glassobject;

glassobject == CreateObject(....)

DestroyObject(glassobject);


Re: how to remove objectes - InTeL_cOrE_i7 - 14.06.2013

okay thx guys