25.01.2014, 04:03
Код:
CMD:enter(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 5, 1368.8760,-1279.8350,13.5469)) { SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); //ammu1 SetPlayerInterior(playerid, 1); } if(IsPlayerInRangeOfPoint(playerid, 5, 1833.7809,-1842.6556,13.5781)) { SetPlayerPos(playerid, -26.691598,-55.714897,1003.546875); //shop1 SetPlayerInterior(playerid, 6); } if(IsPlayerInRangeOfPoint(playerid, 5, 1154.7290,-1457.8655,15.7969)) { SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); //shop2 SetPlayerInterior(playerid, 10); } if(IsPlayerInRangeOfPoint(playerid, 5, 1158.4448,-1473.3921,15.7969)) { SetPlayerPos(playerid, -100.2233,-25.0383,1000.7188); //sexshop SetPlayerInterior(playerid, 3); } if(IsPlayerInRangeOfPoint(playerid, 5, 1157.5017,-1506.8376,15.7969)) { SetPlayerPos(playerid, 207.737991,-109.019996,1005.132812); //binco SetPlayerInterior(playerid, 15); } if(IsPlayerInRangeOfPoint(playerid, 5, 1144.3058,-1521.1958,15.7969)) { SetPlayerPos(playerid, 772.111999,-3.898649,1000.728820); //gym1 SetPlayerInterior(playerid, 5); } if(IsPlayerInRangeOfPoint(playerid, 5, 1112.6682,-1521.2343,15.7969)) { SetPlayerPos(playerid, 314.820983,-141.431991,999.601562); //ammu2 SetPlayerInterior(playerid, 7); } if(IsPlayerInRangeOfPoint(playerid, 5, 1099.5625,-1507.2073,15.7969)) { SetPlayerPos(playerid, 411.625976,-21.433298,1001.804687); //barber1 SetPlayerInterior(playerid, 2); } if(IsPlayerInRangeOfPoint(playerid, 5, 1098.6162,-1473.4822,15.7969)) { SetPlayerPos(playerid, -204.439987,-26.453998,1002.273437); //tatoo1 SetPlayerInterior(playerid, 16); } if(IsPlayerInRangeOfPoint(playerid, 5, 1102.4136,-1457.8743,15.7969)) { SetPlayerPos(playerid, 372.3034,-133.5245,1001.4922); //pizza1 SetPlayerInterior(playerid, 5); } if(IsPlayerInRangeOfPoint(playerid, 5, 928.9110,-1352.8693,13.3438)) { SetPlayerPos(playerid, 365.0503,-11.8390,1001.8516); //cluckinbell SetPlayerInterior(playerid, 9); } if(IsPlayerInRangeOfPoint(playerid, 5, 1456.6302,-1009.9263,26.8438)) { SetPlayerPos(playerid, 2315.952880,-1.618174,26.742187); //bank1 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 1434.4790,-968.4566,37.3876)) { SetPlayerPos(playerid, 2304.6743,-16.0543,26.7422); //bank2 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 1555.4891,-1675.5331,16.1953)) { SetPlayerPos(playerid, 246.8402,62.4653,1003.6406); //lspd SetPlayerInterior(playerid, 6); } if(IsPlayerInRangeOfPoint(playerid, 5, 1481.0071,-1772.3137,18.7958)) { SetPlayerPos(playerid, 390.7287,173.8255,1008.3828); //cityhall SetPlayerInterior(playerid, 3); } if(IsPlayerInRangeOfPoint(playerid, 5, 1567.0016,-1333.3529,16.4844)) { SetPlayerPos(playerid, 1548.3414,-1363.7502,326.2183); //startower SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 2105.4790,-1806.3136,13.5547)) { SetPlayerPos(playerid, 372.8038,-133.5218,1001.4922); //pizza2 SetPlayerInterior(playerid, 5); } return 1; } CMD:exit(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 5, 286.148986,-40.644397,1001.515625)) { SetPlayerPos(playerid, 1368.8760,-1279.8350,13.5469);//ammu1 SetPlayerInterior(playerid, 0); } if (IsPlayerInRangeOfPoint(playerid, 5,-26.691598,-55.714897,1003.546875)) { SetPlayerPos(playerid, 1833.7809,-1842.6556,13.5781); //shop1 SetPlayerInterior(playerid, 0); } if (IsPlayerInRangeOfPoint(playerid, 5,6.091179,-29.271898,1003.549438)) { SetPlayerPos(playerid, 1154.7290,-1457.8655,15.7969); //shop2 SetPlayerInterior(playerid, 0); } if (IsPlayerInRangeOfPoint(playerid, 5,-100.2233,-25.0383,1000.7188)) { SetPlayerPos(playerid, 1158.4448,-1473.3921,15.7969); //sexshop SetPlayerInterior(playerid, 0); } if (IsPlayerInRangeOfPoint(playerid, 5,207.737991,-109.019996,1005.132812)) { SetPlayerPos(playerid, 1157.5017,-1506.8376,15.7969); //binco SetPlayerInterior(playerid, 0); } if (IsPlayerInRangeOfPoint(playerid, 5,772.111999,-3.898649,1000.728820)) { SetPlayerPos(playerid, 1144.3058,-1521.1958,15.7969); //gym1 SetPlayerInterior(playerid, 0); } if (IsPlayerInRangeOfPoint(playerid, 5,314.820983,-141.431991,999.601562)) { SetPlayerPos(playerid, 1112.6682,-1521.2343,15.7969); //ammu2 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 411.625976,-21.433298,1001.804687)) { SetPlayerPos(playerid, 1099.5625,-1507.2073,15.7969); //barber1 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, -204.439987,-26.453998,1002.273437)) { SetPlayerPos(playerid, 1098.6162,-1473.4822,15.7969); //tatoo1 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 372.3034,-133.5245,1001.4922)) { SetPlayerPos(playerid, 1102.4136,-1457.8743,15.7969); //pizza1 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 365.0503,-11.8390,1001.8516)) { SetPlayerPos(playerid, 928.9110,-1352.8693,13.3438); //cluckinbell SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 2315.952880,-1.618174,26.742187)) { SetPlayerPos(playerid, 1456.6302,-1009.9263,26.8438); //bank1 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 2304.6743,-16.0543,26.7422)) { SetPlayerPos(playerid, 1434.4790,-968.4566,37.3876); //bank2 SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 246.8402,62.4653,1003.6406)) { SetPlayerPos(playerid, 1555.4891,-1675.5331,16.1953); //lspd SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 390.7287,173.8255,1008.3828)) { SetPlayerPos(playerid, 1481.0071,-1772.3137,18.7958); //cityhall SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 1548.3414,-1363.7502,326.2183)) { SetPlayerPos(playerid, 1567.0016,-1333.3529,16.4844); //startower SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5, 372.8038,-133.5218,1001.4922)) { SetPlayerPos(playerid, 2105.4790,-1806.3136,13.5547); //pizza2 SetPlayerInterior(playerid, 0); } return 1; }