Los Santos Boundaries
#1

Hello guys,

I am making a gamemode on Los Santos and I don't want players leaving Los Santos city is there any way to block other cities?

Thanks
Reply
#2

Any idea?
Reply
#3

Hello SecretBoss,

Try this : https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds

- KillerDVX
Reply
#4

These should keep him inside Los Santos only.

PHP код:
SetPlayerWorldBounds(playerid,Float:3000,Float:37.542662,Float:3000,Float:488.054608


...or place roadblocks on each motorway to restrict players leaving the city (check this filterscript).
Reply
#5

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
Hello SecretBoss,

Try this : https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds

- KillerDVX
I found it before, but I don't know how to use it


Quote:
Originally Posted by Michael B
Посмотреть сообщение
These should keep him inside Los Santos only.

PHP код:
SetPlayerWorldBounds(playerid,Float:3000,Float:37.542662,Float:3000,Float:488.054608


...or place roadblocks on each motorway to restrict players leaving the city (check this filterscript).
I will try it now thanks for helping, +rep to both
Reply
#6

Your signature is very misleading if you are not even capable of doing something like setting world boundries.
Reply
#7

Quote:
Originally Posted by Sellize
Посмотреть сообщение
Your signature is very misleading if you are not even capable of doing something like setting world boundries.
I wanted something like a script that auto adds some places or something dynamic and whats the problem with it? Whole samp is boundries? lol

EDIT: And yea that code is not working
Reply
#8

Which code? Where did you place the function?
Reply
#9

Quote:
Originally Posted by Michael B
Посмотреть сообщение
Which code? Where did you place the function?
OnPlayerConnect, like wiki

Код:
SetPlayerWorldBounds(playerid,Float:3000,Float:37.542662,Float:3000,Float:488.054608)
Reply
#10

Try to place it under OnPlayerSpawn callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)