Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Kewun on Jul 21, 2016, 12:17 PM

Title: SetWorldBounds doesnt work?
Post by: Kewun on Jul 21, 2016, 12:17 PM
function onScriptLoad() {
SetWorldBounds(-142.3214, -769.1071, 167.1429, -675.5357)
}

im trying to set world boundaries to not make player leave the prawn island, and doesnt work. players can still walk free on whole map.

bug of vcmp or what?
Title: Re: SetWorldBounds doesnt work?
Post by: Finch Real on Jul 21, 2016, 12:29 PM
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Bounds
Title: Re: SetWorldBounds doesnt work?
Post by: Kewun on Jul 21, 2016, 12:38 PM
doesnt work also.
Title: Re: SetWorldBounds doesnt work?
Post by: Kewun on Jul 21, 2016, 12:38 PM
no errors
Title: Re: SetWorldBounds doesnt work?
Post by: Finch Real on Jul 21, 2016, 12:40 PM
Maybe problem in your vectors
Title: Re: SetWorldBounds doesnt work?
Post by: Kewun on Jul 21, 2016, 01:02 PM
no problems in vectors, i used jacob's boundaries tool
Title: Re: SetWorldBounds doesnt work?
Post by: rww on Jul 21, 2016, 01:22 PM
You set min x min y max x max y.On wiki is max x min x max y min y.
Title: Re: SetWorldBounds doesnt work?
Post by: vito on Jul 21, 2016, 01:22 PM
I had this problem before, you need to rejoin after u set new borders.
Title: Re: SetWorldBounds doesnt work?
Post by: Kewun on Jul 21, 2016, 01:49 PM
still not works
Title: Re: SetWorldBounds doesnt work?
Post by: rww on Jul 21, 2016, 01:57 PM
So... Bad positions, squirrel plugin bug or mistake on wiki.
Title: Re: SetWorldBounds doesnt work?
Post by: Kewun on Jul 25, 2016, 06:44 AM
any ideas how to fix this crap? :/