Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: :P on Oct 28, 2015, 09:43 AM

Title: tree
Post by: :P on Oct 28, 2015, 09:43 AM
i want to create tree object but its creating in air not on earth :P you can see in screen shot
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi67.tinypic.com%2F2mdfaqr.png&hash=ce8b319d6cb50697d1f18626091aeb07e5baef98)
else if ( cmd == "tree2" )
                            {
                            CreateObject( 448, player.World, player.Pos, 255);
                       }
Title: Re: tree
Post by: Xmair on Oct 28, 2015, 10:39 AM
What if someone spams it?
On topic: Well, You can lower the "z" a bit.
else if ( cmd == "tree2" )
{
CreateObject(448,player.World,Vector(player.Pos.x,player.Pos.y,player.Pos.z-5),255)
}
Didn't tested tho....
Title: Re: tree
Post by: :P on Oct 28, 2015, 10:45 AM
Thanx locked