Zone help
#1

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

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

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

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

up
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)