Los Santos Boundaries - 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: Los Santos Boundaries (
/showthread.php?tid=588779)
Los Santos Boundaries -
SecretBoss - 12.09.2015
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
Re: Los Santos Boundaries -
SecretBoss - 12.09.2015
Any idea?
Re : Los Santos Boundaries -
KillerDVX - 12.09.2015
Hello SecretBoss,
Try this :
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds
- KillerDVX
Re: Los Santos Boundaries -
Michael B - 12.09.2015
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).
Re: Los Santos Boundaries -
SecretBoss - 12.09.2015
Quote:
Originally Posted by 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
Re: Los Santos Boundaries -
Sellize - 12.09.2015
Your signature is very misleading if you are not even capable of doing something like setting world boundries.
Re: Los Santos Boundaries -
SecretBoss - 12.09.2015
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
Re: Los Santos Boundaries -
Michael B - 12.09.2015
Which code? Where did you place the function?
Re: Los Santos Boundaries -
SecretBoss - 12.09.2015
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)
Re: Los Santos Boundaries -
Michael B - 12.09.2015
Try to place it under
OnPlayerSpawn callback.