22.01.2014, 03:51
We all know SetPlayerWorldBounds function as to keep player in the specify area.
And it got 4 points to do it, XMax, XMin, YMax, YMin, and i did that.
Now the problem is, I can't seem to function it right, I got the coordinates for that and i always get "Stay in the World Boundaries" even i am inside the World Boundary!
Here's screenshot:
World Bounds i set for the round.
Results:
----
How i do it.
In the AddStaticVehicle, Which coords should i use? Can someone explain, Reply if you don't quite understand.
And it got 4 points to do it, XMax, XMin, YMax, YMin, and i did that.
Now the problem is, I can't seem to function it right, I got the coordinates for that and i always get "Stay in the World Boundaries" even i am inside the World Boundary!
Here's screenshot:
World Bounds i set for the round.
Results:
----
How i do it.
Код:
AddStaticVehicle(522,-290.2446,-303.2623,4.5036,118.0774,3,8); // xmin AddStaticVehicle(522,378.4546,-396.5240,24.3621,267.5102,6,25); // xmax AddStaticVehicle(522,195.0797,-458.1328,14.7314,85.4236,6,25); // ymax AddStaticVehicle(522,204.6932,114.0143,3.4568,353.6342,6,25); // ymin
pawn Код:
SetPlayerWorldBounds(playerid, 378.4546, -290.2446, -458.1328, 114.0143);