Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: MacTavish on Nov 19, 2014, 06:41 AM

Title: CreateObject doesnt working or i am doing wrong
Post by: MacTavish on Nov 19, 2014, 06:41 AM
I tested on both OnServerStart  And OnPlayerJoin but my object is now showing in server, i am getting no error in console


CreateObject(6000,0,Vector(-277, -495, 10),255); 

I am trying to add this gate
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Ftiny-img.com%2Fimage.php%3Fdi%3DB6PD&hash=2c6d9975d048c57676911d3e6d29ec8f88ff9fd7)
Title: Re: CreateObject doesnt working or i am doing wrong
Post by: MacTavish on Nov 19, 2014, 06:52 AM
Do i need to add this id instead 6000

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Ftiny-img.com%2Fimage.php%3Fdi%3DCYA7&hash=f611d98047edfd7a345363f2c379a83c4bbe9ef2)


Does it work? I didnt tested
Title: Re: CreateObject doesnt working or i am doing wrong
Post by: Honey on Nov 19, 2014, 07:39 AM
The gate is already there? What is the problem?

Btw, That's flockshot's script. Did he gave it to you?
Title: Re: CreateObject doesnt working or i am doing wrong
Post by: MacTavish on Nov 19, 2014, 07:59 AM
No bro i just added that image for explain what i am trying to add. That image i got from  friend. The gate is not appearing in my server
Title: Re: CreateObject doesnt working or i am doing wrong
Post by: Honey on Nov 19, 2014, 08:47 AM
Oh Ok, Try this :


gate <-CreateObject(6000,0,Vector(-277, -495, 10),255); 
gate.ShowForAll();

Title: Re: CreateObject doesnt working or i am doing wrong
Post by: MacTavish on Nov 19, 2014, 10:37 AM
Quote from: Honey on Nov 19, 2014, 08:47 AMOh Ok, Try this :


gate <-CreateObject(6000,0,Vector(-277, -495, 10),255); 
gate.ShowForAll();


Didnt worked. Actually this is working OnPlayerJoin

CreateObject(303,0,Vector(-277, -495, 10),255);
6000 was wrong


Thanks. :)