Am un gamemode si .. cand dau compile imi da 26 de erori . Am asa : am luat de la KeyStateChange...
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 1 || InfoJucator[playerid][zLider]== 1)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 1568.6576,-1689.9709,6.2188))
{
SetPlayerPos(playerid,246.4183,107.3087,1003.2188);
SetPlayerInterior(playerid, 10);
}
if (PlayerToPoint(2.0, playerid, 246.4183,107.3087,1003.2188))
{
SetPlayerPos(playerid,1568.6576,-1689.9709,6.2188);
SetPlayerInterior(playerid, 0);
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 1 || InfoJucator[playerid][zLider]== 1)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 242.4398,66.4024,1003.6406))
{
SetPlayerPos(playerid,1565.0593,-1666.9803,28.3956);
SetPlayerInterior(playerid, 0);
}
if (PlayerToPoint(2.0, playerid, 1565.0593,-1666.9803,28.3956))
{
SetPlayerPos(playerid,242.4398,66.4024,1003.6406);
SetPlayerInterior(playerid, 6);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 2 || InfoJucator[playerid][zLider]== 2)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -1594.2112,716.1604,-4.9063))
{
SetPlayerPos(playerid,238.6292,138.7182,1003.0234);
SetPlayerInterior(playerid, 3);
}
if (PlayerToPoint(2.0, playerid, 238.6292,138.7182,1003.0234))
{
SetPlayerPos(playerid,-1594.2112,716.1604,-4.9063);
SetPlayerInterior(playerid, 0);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 3 || InfoJucator[playerid][zLider]== 3)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -1368.3495,490.3738,11.1953))
{
SetPlayerPos(playerid,236.5620,1832.0643,7.4141);
SetPlayerInterior(playerid, 0);
}
if (PlayerToPoint(2.0, playerid, 236.5620,1832.0643,7.4141))
{
SetPlayerPos(playerid,-1368.3495,490.3738,11.1953);
SetPlayerInterior(playerid, 0);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 4 || InfoJucator[playerid][zLider]== 4)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -2655.0444,640.1628,14.4545))
{
SetPlayerPos(playerid,1494.5170,1303.5784,1093.2891);
SetPlayerInterior(playerid, 3);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 1494.5170,1303.5784,1093.2891))
{
SetPlayerPos(playerid,-2655.0444,640.1628,14.4545);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 5 || InfoJucator[playerid][zLider]== 5)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 1122.7067,-2037.0065,69.8942))
{
SetPlayerPos(playerid,1727.0048,-1637.8695,20.2230);
SetPlayerInterior(playerid, 18);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 1727.0048,-1637.8695,20.2230))
{
SetPlayerPos(playerid,1122.7067,-2037.0065,69.8942);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 6 || InfoJucator[playerid][zLider]== 6)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -2192.5305,647.4223,49.4375))
{
SetPlayerPos(playerid,774.1104,-50.4760,1000.5859);
SetPlayerInterior(playerid, 6);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 774.1104,-50.4760,1000.5859))
{
SetPlayerPos(playerid,-2192.5305,647.4223,49.4375);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
//===============================================================================================//
if (newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1479.6300,-1783.0321,15.4178))
{
SCM(playerid, COLOR_WHITE, "Bine ai venit la Primarie !");
SetPlayerPos(playerid,390.7695,173.8515,1008.3828);//
SetPlayerInterior(playerid, 3);
}
if (PlayerToPoint(2.0, playerid, 390.7695,173.8515,1008.3828))//
{
SetPlayerPos(playerid,1479.6300,-1783.0321,15.4178);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 8 || InfoJucator[playerid][zLider]== 8)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 1106.5477,-299.7444,74.5391))
{
SetPlayerPos(playerid,315.7309,-143.6611,999.6016);
SetPlayerInterior(playerid, 7);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 315.7309,-143.6611,999.6016))
{
SetPlayerPos(playerid,1106.5477,-299.7444,74.5391);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 8 || InfoJucator[playerid][zLider]== 8)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(1.0, playerid, 304.5872,-141.8896,1004.0625))
{
SetPlayerPos(playerid,305.3537,-141.8513,1004.0625);
SetPlayerInterior(playerid, 7);
}
if (PlayerToPoint(1.0, playerid, 305.3537,-141.8513,1004.0625))
{
SetPlayerPos(playerid,304.5872,-141.8896,1004.0625);
SetPlayerInterior(playerid, 7);
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 8 || InfoJucator[playerid][zLider]== 8)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(1.0, playerid,299.2110,-141.8897,1004.0547))
{
SetPlayerPos(playerid,299.9449,-141.9284,1004.0625);
SetPlayerInterior(playerid, 7);
}
if (PlayerToPoint(1.0, playerid, 299.9449,-141.9284,1004.0625))
{
SetPlayerPos(playerid,299.2110,-141.8897,1004.0547);
SetPlayerInterior(playerid, 7);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 9 || InfoJucator[playerid][zLider]== 9)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -2056.2820,453.7474,35.1719))
{
SetPlayerPos(playerid,227.5420,-8.1228,1002.2109);
SetPlayerInterior(playerid, 5);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 227.5420,-8.1228,1002.2109))
{
SetPlayerPos(playerid,-2056.2820,453.7474,35.1719);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 9 || InfoJucator[playerid][zLider]== 9)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 206.0421,-3.5276,1001.2109))
{
SetPlayerPos(playerid,-2053.8733,457.0793,139.6406);
SetPlayerInterior(playerid, 0);
}
if (PlayerToPoint(2.0, playerid, -2053.8733,457.0793,139.6406))
{
SetPlayerPos(playerid,206.0421,-3.5276,1001.2109);
SetPlayerInterior(playerid, 5);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 10 || InfoJucator[playerid][zLider]== 10)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -1973.9099,96.8081,27.6875))
{
SetPlayerPos(playerid,-229.2940,1401.2506,27.7656);
SetPlayerInterior(playerid, 18);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, -229.2940,1401.2506,27.7656))
{
SetPlayerPos(playerid,-1973.9099,96.8081,27.6875);
WantedSala[playerid] = 0;
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 11 || InfoJucator[playerid][zLider]== 11)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -2026.6086,-102.0648,35.1641))
{
SCM(playerid, COLOR_WHITE, "Bine ai venit la Scoala de Soferi !");
SetPlayerPos(playerid,-2026.8259,-103.6021,1035.1833);
SetPlayerInterior(playerid, 3);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, -2026.8259,-103.6021,1035.1833))
{
SetPlayerPos(playerid,-2026.6086,-102.0648,35.1641);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 11 || InfoJucator[playerid][zLider]== 11)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, -2029.7344,-119.6234,1035.1719))
{
SetPlayerPos(playerid,-2029.7021,-120.5197,35.1691);
SetPlayerInterior(playerid, 0);
}
if (PlayerToPoint(2.0, playerid, -2029.7021,-120.5197,35.1691))
{
SetPlayerPos(playerid,-2029.7344,-119.6234,1035.1719);
SetPlayerInterior(playerid, 3);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 12 || InfoJucator[playerid][zLider]== 12)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 2495.3672,-1691.1388,14.7656))
{
SCM(playerid, COLOR_WHITE, "Bine ai venit la Grove Street !");
SetPlayerPos(playerid,316.4863,-170.2232,999.5938);
SetPlayerInterior(playerid, 6);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 316.4863,-170.2232,999.5938))
{
SetPlayerPos(playerid,2495.3672,-1691.1388,14.7656);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 12 || InfoJucator[playerid][zLider]== 12)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 306.3996,-159.1954,999.5938))
{
SetPlayerPos(playerid,305.2526,-159.1251,999.5938);
SetPlayerInterior(playerid, 6);
}
if (PlayerToPoint(2.0, playerid, 305.2526,-159.1251,999.5938))
{
SetPlayerPos(playerid,306.3996,-159.1954,999.5938);
SetPlayerInterior(playerid, 6);
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 12 || InfoJucator[playerid][zLider]== 12)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 298.9913,-168.9831,999.5938))
{
SetPlayerPos(playerid,297.8189,-168.9434,999.5938);
SetPlayerInterior(playerid, 6);
}
if (PlayerToPoint(2.0, playerid, 297.8189,-168.9434,999.5938))
{
SetPlayerPos(playerid,298.9913,-168.9831,999.5938);
SetPlayerInterior(playerid, 6);
}
}
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 13 || InfoJucator[playerid][zLider]== 13)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 2146.7939,-1470.5298,26.0426))
{
SCM(playerid, COLOR_WHITE, "Bine ai venit la Ballas !");
SetPlayerPos(playerid,285.7467,-86.6874,1001.5229);
SetPlayerInterior(playerid, 4);
WantedSala[playerid] = 1;
}
if (PlayerToPoint(2.0, playerid, 285.7467,-86.6874,1001.5229))
{
SetPlayerPos(playerid,2146.7939,-1470.5298,26.0426);
SetPlayerInterior(playerid, 0);
WantedSala[playerid] = 0;
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 13 || InfoJucator[playerid][zLider]== 13)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 301.6879,-76.5414,1001.5156))
{
SetPlayerPos(playerid,301.8097,-75.6419,1001.5156);
SetPlayerInterior(playerid, 4);
}
if (PlayerToPoint(2.0, playerid, 301.8097,-75.6419,1001.5156))
{
SetPlayerPos(playerid,301.6879,-76.5414,1001.5156);
SetPlayerInterior(playerid, 4);
}
}
}
}
}
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if(InfoJucator[playerid][zMembru]== 13 || InfoJucator[playerid][zLider]== 13)
{
if(WantedLevel[playerid] == 0)
{
if (PlayerToPoint(2.0, playerid, 303.2666,-57.6424,1001.5156))
{
SetPlayerPos(playerid,304.1229,-57.7928,1001.5156);
SetPlayerInterior(playerid, 4);
}
if (PlayerToPoint(2.0, playerid, 304.1229,-57.7928,1001.5156))
{
SetPlayerPos(playerid,303.2666,-57.6424,1001.5156);
SetPlayerInterior(playerid, 4);
}
}
}
}
}
//===============================================================================================//
if (newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 893.6019,-1635.7104,14.9296))
{
SetPlayerPos(playerid,834.6571,7.3710,1004.1870);
SetPlayerInterior(playerid, 3);
}
if (PlayerToPoint(2.0, playerid,834.6571,7.3710,1004.1870))
{
SetPlayerPos(playerid,893.6019,-1635.7104,14.9296);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1555.4680,-1675.5061,16.1953))
{
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
SetPlayerInterior(playerid, 6);
}
if (PlayerToPoint(2.0, playerid, 246.783996,63.900199,1003.640625))
{
SetPlayerPos(playerid,1555.4680,-1675.5061,16.1953);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -1605.5811,710.2726,13.8672))
{
SetPlayerPos(playerid,322.1485,302.3618,999.1484);
SetPlayerInterior(playerid, 5);
}
if (PlayerToPoint(2.0, playerid, 322.1485,302.3618,999.1484))
{
SetPlayerPos(playerid,-1605.5811,710.2726,13.8672);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1022.5413,-1121.4210,23.8701))
{
SetPlayerPos(playerid,2019.0715,1017.8588,996.8750);
SetPlayerInterior(playerid, 10);
}
if (PlayerToPoint(2.0, playerid, 2019.0715,1017.8588,996.8750))
{
SetPlayerPos(playerid,1022.5413,-1121.4210,23.8701);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -2351.1230,492.6081,30.8139))
{
SetPlayerPos(playerid,1133.1279,-15.8323,1000.6797);
SetPlayerInterior(playerid, 12);
}
if (PlayerToPoint(2.0, playerid, 1133.1279,-15.8323,1000.6797))
{
SetPlayerPos(playerid,-2351.1230,492.6081,30.8139);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 2019.3234,1007.7750,10.8203))
{
SetPlayerPos(playerid,2233.9414,1714.6836,1012.3828);
SetPlayerInterior(playerid, 1);
}
if (PlayerToPoint(2.0, playerid, 2233.9414,1714.6836,1012.3828))
{
SetPlayerPos(playerid,2019.3234,1007.7750,10.8203);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 2165.9833,-1671.1517,15.0731))
{
SetPlayerPos(playerid,318.4567,1114.4814,1083.8828);
SetPlayerInterior(playerid, 5);
}
if (PlayerToPoint(2.0, playerid, 318.4567,1114.4814,1083.8828))
{
SetPlayerPos(playerid,2165.9833,-1671.1517,15.0731);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 2421.5471,-1219.2439,25.5616))
{
SetPlayerPos(playerid,1204.7266,-13.8521,1000.9219);
SetPlayerInterior(playerid, 2);
}
if (PlayerToPoint(2.0, playerid, 1204.7266,-13.8521,1000.9219))
{
SetPlayerPos(playerid,2421.5471,-1219.2439,25.5616);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1837.0390,-1682.0589,13.3228))
{
SetPlayerPos(playerid,493.7522,-24.8260,1000.6796);
SetPlayerInterior(playerid, 17);
}
if (PlayerToPoint(2.0, playerid, 493.7522,-24.8260,1000.6796))
{
SetPlayerPos(playerid,1837.0390,-1682.0589,13.3228);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -2624.6914,1412.7197,7.0938))
{
SetPlayerPos(playerid,-2636.6453,1402.5317,906.4609);
SetPlayerInterior(playerid, 3);
}
if (PlayerToPoint(2.0, playerid,-2636.6453,1402.5317,906.4609))
{
SetPlayerPos(playerid,-2624.6914,1412.7197,7.0938);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 2239.0491,1285.6536,10.8203))
{
SetPlayerPos(playerid,1212.1484,-25.8746,1000.9531);
SetPlayerInterior(playerid, 3);
}
if (PlayerToPoint(2.0, playerid,1212.1484,-25.8746,1000.9531))
{
SetPlayerPos(playerid,2239.0491,1285.6536,10.8203);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1315.4827,-897.7059,39.5781))
{
SetPlayerPos(playerid,-25.8542,-188.2488,1003.5469);
SetPlayerInterior(playerid, 17);
}
if (PlayerToPoint(2.0, playerid, -25.8542,-188.2488,1003.5469))
{
SetPlayerPos(playerid,1315.4827,-897.7059,39.5781);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1352.3192,-1759.2539,13.5078))
{
SetPlayerPos(playerid,6.0841,-31.7565,1003.5494);
SetPlayerInterior(playerid, 10);
}
if (PlayerToPoint(2.0, playerid, 6.0841,-31.7565,1003.5494))
{
SetPlayerPos(playerid,1352.3192,-1759.2539,13.5078);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1833.7797,-1842.6281,13.5781))
{
SetPlayerPos(playerid,-30.9636,-92.0093,1003.5469);
SetPlayerInterior(playerid, 18);
}
if (PlayerToPoint(2.0, playerid, -30.9636,-92.0093,1003.5469))
{
SetPlayerPos(playerid,1833.7797,-1842.6281,13.5781);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -2442.6667,755.4184,35.1719))
{
SetPlayerPos(playerid,-25.9231,-141.5612,1003.5469);
SetPlayerInterior(playerid, 16);
}
if (PlayerToPoint(2.0, playerid, -25.9231,-141.5612,1003.5469))
{
SetPlayerPos(playerid,-2442.6667,755.4184,35.1719);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -1889.9973,1294.4987,7.1797))
{
SetPlayerPos(playerid,-27.3030,-31.7577,1003.5573);
SetPlayerInterior(playerid, 4);
}
if (PlayerToPoint(2.0, playerid, -27.3030,-31.7577,1003.5573))
{
SetPlayerPos(playerid,-1889.9973,1294.4987,7.1797);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -2034.8975,148.5725,28.8359))
{
SetPlayerPos(playerid,-27.3768,-58.2695,1003.5469);
SetPlayerInterior(playerid, 6);
}
if (PlayerToPoint(2.0, playerid, -27.3768,-58.2695,1003.5469))
{
SetPlayerPos(playerid,-2034.8975,148.5725,28.8359);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 2229.9401,-1721.2968,13.5617))
{
SetPlayerPos(playerid,772.111999,-3.898649,1000.728820);
SetPlayerInterior(playerid, 5);
}
if (PlayerToPoint(2.0, playerid, 772.111999,-3.898649,1000.728820))
{
SetPlayerPos(playerid,2229.9401,-1721.2968,13.5617);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1570.4423,-1337.4542,16.4844))
{
SetPlayerPos(playerid,1548.6227,-1363.7427,326.2183);
SetPlayerInterior(playerid, 0);
}
if (PlayerToPoint(2.0, playerid, 1548.6227,-1363.7427,326.2183))
{
SetPlayerPos(playerid,1570.4423,-1337.4542,16.4844);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1199.2540,-918.1423,43.1232))
{
SetPlayerPos(playerid,377.0991,-193.3048,1000.6328);
SetPlayerInterior(playerid, 17);
}
if (PlayerToPoint(2.0, playerid, 377.0991,-193.3048,1000.6328))
{
SetPlayerPos(playerid,1199.2540,-918.1423,43.1232);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 810.4899,-1616.1743,13.5469))
{
SetPlayerPos(playerid,372.3212,-133.5184,1001.4922);
SetPlayerInterior(playerid, 5);
}
if (PlayerToPoint(2.0, playerid, 372.3212,-133.5184,1001.4922))
{
SetPlayerPos(playerid,810.4899,-1616.1743,13.5469);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -2336.8679,-166.8224,35.5547))
{
SetPlayerPos(playerid,362.8703,-75.1635,1001.5078);
SetPlayerInterior(playerid, 10);
}
if (PlayerToPoint(2.0, playerid, 362.8703,-75.1635,1001.5078))
{
SetPlayerPos(playerid,-2336.8679,-166.8224,35.5547);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -2355.8171,1008.0743,50.8984))
{
SetPlayerPos(playerid,364.8684,-11.7260,1001.8516);
SetPlayerInterior(playerid, 9);
}
if (PlayerToPoint(2.0, playerid, 364.8684,-11.7260,1001.8516))
{
SetPlayerPos(playerid,-2355.8171,1008.0743,50.8984);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 2310.0679,-1643.5170,14.8270))
{
SetPlayerPos(playerid,501.9753,-67.5695,998.7578);
SetPlayerInterior(playerid, 11);
}
if (PlayerToPoint(2.0, playerid, 501.9753,-67.5695,998.7578))
{
SetPlayerPos(playerid,2310.0679,-1643.5170,14.8270);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, -1694.5653,951.8992,24.8906))
{
SetPlayerPos(playerid, 207.6497,-111.2660,1005.1328);
SetPlayerInterior(playerid, 15);
}
if (PlayerToPoint(2.0, playerid, 207.6497,-111.2660,1005.1328))
{
SetPlayerPos(playerid,-1694.5653,951.8992,24.8906);
SetPlayerInterior(playerid, 0);
}
}
}
//===============================================================================================//
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid, 1329.1317,-1557.6345,13.5469))
{
SetPlayerPos(playerid,-977.8568,1053.0228,1344.9913);
SetPlayerInterior(playerid, 10);
WantedWarZone[playerid] = 1;
ResetPlayerWeapons(playerid);
}
if (PlayerToPoint(2.0, playerid, -977.8568,1053.0228,1344.9913))
{
SetPlayerPos(playerid,1329.1317,-1557.6345,13.5469);
SetPlayerInterior(playerid, 0);
WantedWarZone[playerid] = 0;
ResetPlayerWeapons(playerid);
}
}
}
// Porti
// ---------- Poarta Politia Comunitara
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,1588.1082,-1634.5288,13.3828) || PlayerToPoint(10, playerid,1588.6952,-1640.6711,13.1626))
{
MoveObject(PoartaPC, 1596.7978515625, -1638.0997314453, 14.581316947937, 4.0);
SCM(playerid, COLOR_LIGHTBLUE, "» Poarta s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("gatepdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Poarta Politia Rutiera
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(15, playerid,-1630.8136,686.7615,7.1875) || PlayerToPoint(15, playerid,-1630.8136,686.7615,7.1875))
{
MoveObject(PoartaPR, -1673.1999511719, 689.09997558594, 10.0, 4.0);
SCM(playerid, COLOR_LIGHTBLUE, "» Poarta s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("gatepdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Poarta Armata Romana
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,2719.5164,-2405.4153,13.4623) || PlayerToPoint(10, playerid,2721.0085,-2405.1550,13.4609))
{
MoveObject(PoartaAR, 2720.14453125, -2396.2426757813, 13.10000038147, 4.0);
SCM(playerid, COLOR_LIGHTBLUE, "» Poarta s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("gatepdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Poarta Armata Romana 2
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,2721.5999,-2503.6318,13.4869) || PlayerToPoint(10, playerid,2718.9617,-2503.5574,13.4828))
{
MoveObject(PoartaAR2, 2720.1323242188, -2494.7946777344, 13.10000038147, 4.0);
SCM(playerid, COLOR_LIGHTBLUE, "» Poarta s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("gatepdclose",3500, false);
return (1) ;
}
}
}
}
//=============================================================================================================================================================
// Bariere Politia Comunitara
//=============================================================================================================================================================
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,1538.7560,-1628.0847,13.3828) || PlayerToPoint(10, playerid,1545.9342,-1627.7917,13.3828))
{
SetObjectRot(BarieraPC, 0.0, 0.0, 91.8271484375);
SCM(playerid, COLOR_LIGHTBLUE, "» Bariera s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("vamapdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Bariera Politia Rutiera
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,-1571.4324,663.0751,7.1875) || PlayerToPoint(10, playerid,-1572.6605,662.4695,7.1875))
{
SetObjectRot(BarieraPR, 0.0, 0.0, 90.03662109375);
SCM(playerid, COLOR_LIGHTBLUE, "» Bariera s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("vamapdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Bariera Politia Rutiera 2
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 1 || InfoJucator[playerid][zLider] == 1 || InfoJucator[playerid][zMembru] == 2 || InfoJucator[playerid][zLider] == 2 || InfoJucator[playerid][zMembru] == 3 || InfoJucator[playerid][zLider] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,-1700.8472,684.4244,24.7658) || PlayerToPoint(10, playerid,-1701.9498,684.4145,24.8906))
{
SetObjectRot(BarieraPR2, 0.0, 0.0, 90.03662109375);
SCM(playerid, COLOR_LIGHTBLUE, "» Bariera s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("vamapdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Bariera Stirile ProTV
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 9 || InfoJucator[playerid][zLider] == 9)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,-2041.7742,492.8324,35.1723) || PlayerToPoint(10, playerid,-2041.5864,494.6201,35.1641))
{
SetObjectRot(BarieraNews, 0.0, 0.0, 0.0);
SCM(playerid, COLOR_LIGHTBLUE, "» Bariera s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("vamapdclose",3500, false);
return (1) ;
}
}
}
}
// ---------- Bariera Scoala de Soferi
if (newkeys==KEY_FIRE)
{
if(InfoJucator[playerid][zMembru] == 11 || InfoJucator[playerid][zLider] == 11)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,-2047.4978,-79.1103,35.1719) || PlayerToPoint(10, playerid,-2047.3396,-81.4240,35.1641))
{
SetObjectRot(BarieraSI, 0.0, 0.0, 0.0);
SCM(playerid, COLOR_LIGHTBLUE, "» Bariera s-a Deschis, se va inchide automat in 5 secunde.");
SetTimer("vamapdclose",3500, false);
return (1) ;
}
}
}
}
return 0;
}
Imi da urmatorile erori . Ma puteti ajuta ?
Liniile 34666 nu exista , eroarea este la urma scriptului ... Cum o pot rezolva ?
This section is ONLY for English. Please write in that language or don't we'll understand your thread. You can find your section "Non - English" down and check if your language is there - If you do not found your section please make a thread here explaining your problem but in ENGLISH.