22.01.2014, 06:33
(1)__________
|_________|
|_________|
|_________|
|_________|
|________ |(2)
Take 1st save pos like (/save X pos)
then 2nd as in figure
(/save Y pos)
AddPlayerClass(171, Pos X, Pos Y, Pos Z, Angle, 0,0,0,0,0,0);
AddPlayerClass(171, 1959.9679, -2191.6731, 13.5469, 149.4236, 0,0,0,0,0,0); // X Pos
AddPlayerClass(171, 1854.9679, -1152,13.5469, 149.4236, 0,0,0,0,0,0); // Y Pos
Then find Max_X cordinate from both save pos cordinate, which is max paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
Then find Min_X cordinate from both save pos cordinate, which is min paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
Then find Max_Y cordinate from both save pos cordinate, which is max paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
Then find Min_Y cordinate from both save pos cordinate, which is min paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
|_________|
|_________|
|_________|
|_________|
|________ |(2)
Take 1st save pos like (/save X pos)
then 2nd as in figure
(/save Y pos)AddPlayerClass(171, Pos X, Pos Y, Pos Z, Angle, 0,0,0,0,0,0);
AddPlayerClass(171, 1959.9679, -2191.6731, 13.5469, 149.4236, 0,0,0,0,0,0); // X Pos
AddPlayerClass(171, 1854.9679, -1152,13.5469, 149.4236, 0,0,0,0,0,0); // Y Pos
Then find Max_X cordinate from both save pos cordinate, which is max paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
Then find Min_X cordinate from both save pos cordinate, which is min paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
Then find Max_Y cordinate from both save pos cordinate, which is max paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
Then find Min_Y cordinate from both save pos cordinate, which is min paste SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);
SetPlayerWorldBounds(playerid, Max_X, Min_X, Max_Y, Min_Y);

