Help with createobject and destroyobject
#1

How i can make to createobject with command maybe /creaate -with this to create object 3018 and with /destroy to destroy the object
Reply
#2

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?
Reply
#3

How i can make this
Quote:

them in for further action

Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)