Question
#1

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.
Reply
#2

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

Did you read what i said -_-. I said how can i make people could pass the world boundarys if their virtual world is 44385
Reply
#4

SetPlayerWorldBounds. Think outside the box. Literally.
Reply
#5

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;
}
Reply
#6

bump
Reply
#7

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
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)