Help with createobject and destroyobject - 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: Help with createobject and destroyobject (
/showthread.php?tid=280146)
Help with createobject and destroyobject -
boyan96 - 30.08.2011
How i can make to createobject with command maybe /creaate -with this to create object 3018 and with /destroy to destroy the object
Re: Help with createobject and destroyobject -
=WoR=Varth - 30.08.2011
pawn Код:
new Object;
///create
Object = CreateObject([url]http://wiki.sa-mp.com/wiki/CreateObject[/url]
//Destroy
DestroyObject(Object);[url]http://wiki.sa-mp.com/wiki/DestroyObject[/url]
You have to store their objectid so you can use them in for further action.
Got it?
Re: Help with createobject and destroyobject -
boyan96 - 30.08.2011
How i can make this
Quote:
them in for further action
|
Re: Help with createobject and destroyobject -
=WoR=Varth - 30.08.2011
I already show you how. CreateObject return the objectid(Not model id). Each object have their own id(just like players does).
pawn Код:
Object = CreateObject(...........//Object variable will store this object id (0)
Object1 = CreateObjcet(.............//Object1 variable will store this object id(1)
//And so on