Question - 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: Question (
/showthread.php?tid=319375)
Question -
Tanush123 - 18.02.2012
Ok i made a border that player is only allowed in los santos. how can i make if their virtual world is 43385, they could go pass the border.
Re: Question -
IceCube! - 18.02.2012
Use this function. This allows sets the bounds to the player and not everyone meaning you can set t and when they change to Virtual World x they can go outside.
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds
Re: Question -
Tanush123 - 18.02.2012
Did you read what i said -_-. I said how can i make people could pass the world boundarys if their virtual world is 44385
Re: Question -
Vince - 18.02.2012
Set
PlayerWorldBounds. Think outside the box. Literally.
Re: Question -
Tanush123 - 18.02.2012
Quote:
Originally Posted by Vince
SetPlayerWorldBounds. Think outside the box. Literally.
|
Oh i see player, would this work
pawn Код:
public OnPlayerUpdate...
{
if(GetPlayerVirtualWorld(playerid) != 48835)
{
SetPlayerWorldBounds(playerid,0,0,0,0);
}
return 1;
}
Re: Question -
Tanush123 - 26.02.2012
bump
Re: Question -
FalconX - 27.02.2012
Quote:
Originally Posted by Tanush123
Oh i see player, would this work
pawn Код:
public OnPlayerUpdate... { if(GetPlayerVirtualWorld(playerid) != 48835) { SetPlayerWorldBounds(playerid,0,0,0,0); } return 1; }
|
Hello mate,
I'm unsure about this code, but it should work. SetPlayerWorldBounds should not be 0, it should be the value of your boundaries of LS.
-FalconX
Re: Question -
Tanush123 - 28.02.2012
Quote:
Originally Posted by ue_falconx
Hello mate,
I'm unsure about this code, but it should work. SetPlayerWorldBounds should not be 0, it should be the value of your boundaries of LS.
-FalconX
|
If i do
pawn Код:
SetPlayerWorldBounds(playerid,0,0,0);
that will make no boundary at all?