SA-MP Forums Archive
Zone help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Zone help (/showthread.php?tid=110038)



Zone help - Big_Dan - 24.11.2009

Hi!
I look at the help in my native language to get what I want but I mean nothing and find help on the subject in English with the translator I not understand the half. Ci someone could give me an example would be his cool.
I create a zone around the LS for that player does not leave the city following the cordon.
SetPlayerWorldBounds(playerid, 2942,825, -280,269, 513,8265, -2931,147);

Thanx


Re: Zone help - mamorunl - 24.11.2009

Quote:
Originally Posted by wiki.sa-mp.com
SetPlayerWorldBounds(playerid,Float_max,Float_ min,Float:y_max,Float:y_min);
playerid The player you want to set the boundaries of.
Float_max The max. x-coordinate where the player can go.
Float_min The min. x-coordinate where the player can go.
Float:y_max The max. y-coordinate where the player can go.
Float:y_min The min. y-coordinate where the player can go.
So, if you put your coordinates like this, it is correct.


Re: Zone help - Daniel_Truk - 24.11.2009

Quote:
Originally Posted by Big_Dan
Hi!
I look at the help in my native language to get what I want but I mean nothing and find help on the subject in English with the translator I not understand the half. Ci someone could give me an example would be his cool.
I create a zone around the LS for that player does not leave the city following the cordon.
SetPlayerWorldBounds(playerid, 2942,825, -280,269, 513,8265, -2931,147);

Thanx
SetPlayerWorldBounds(playerid, 2942.825, -280.269, 513.8265, -2931.147);

Use that and it shuld be working

/Cake


Re: Zone help - Big_Dan - 25.11.2009

nice is run thx
I wanted to install another area of the same way to make /DM1 /DM2 but there have conflict or violence


Re: Zone help - Big_Dan - 27.11.2009

up


Re: Zone help - Alexrs - 22.01.2010

ok not to piss anyone off or anything..,

Can we use SetPlayerWorldBounds(playerid, 2942.825, -280.269, 513.8265, -2931.147); in the same area as public OnPlayerConnect(playerid). like I dont want people leaveing LV. What would I need to do?


Re: Zone help - mamorunl - 22.01.2010

Yes, you can set it in OnPlayerConnect. BUT! At characterselection, you are basicly at position 0,0,0. So I would suggest that you put it in 'OnPlayerSpawn'