21.07.2012, 08:34
pawn Код:
CMD:enter(playerid, params[])// With + I mean place which interior works and - where it doesn't work.
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1553.5376,-1675.4498,16.1953))//LSPD -
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 246.7840,64.3196,1003.6406);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))//FBI -
{
SetPlayerPos(playerid, 238.8796,139.4095,1004.2648);
SetPlayerInterior(playerid, 3);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1037.9946,-1339.8110,13.7266))//Donuts Shop -
{
SetPlayerPos(playerid, 377.1972, -192.5130,1002.5086);
SetPlayerInterior(playerid, 17);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1569.7756,-1334.0330,16.4844))//Parachute -
{
SetPlayerPos(playerid, 1546.6072,-1366.2124,326.2109);
SetPlayerInterior(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2244.7349,-1664.2806,15.4766))//Binco -
{
SetPlayerPos(playerid, 207.7380,-109.0200,1005.1328);
SetPlayerInterior(playerid, 15);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1458.7700,-1140.0200,24.0692))//ZIP -
{
SetPlayerPos(playerid, 161.3910,-95.2856,1001.8047);
SetPlayerInterior(playerid, 18);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2167.1455,-1672.5360,15.0757))//Drugs -
{
SetPlayerPos(playerid, 318.7942,1116.4202,1083.8828);
SetPlayerInterior(playerid, 5);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1365.1991,-1278.7695,13.5469))//Amunation +
{
SetPlayerPos(playerid, 286.1490,-40.6444,1001.5156);
SetPlayerInterior(playerid, 1);
}
return 1;
}