20.10.2011, 00:26
Код:
CMD:enter(playerid, params[]) { new string[128]; if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(Houses); i++) { if (Houses[i][LockStatus] == 1 && IsPlayerInRangeOfPoint( playerid, 3, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ])) { format(string, sizeof(string), "~g~Kuca je ~r~Zakljucana"); TextDrawSetString(Kucazakljucana, string); TextDrawShowForPlayer(playerid, Kucazakljucana); SetTimerEx("UnistikucaenterTxT",8000, false, "i", playerid); //SendClientMessage(playerid, WHITE, "Kuca je zakljucana"); return 1; } else if(IsPlayerInRangeOfPoint( playerid, 3, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ]) && Houses[i][LockStatus] == 0) { PlayerInfo[playerid][pInHouse] = i; SetPlayerVirtualWorld( playerid, i+1 ); SetPlayerInterior( playerid, Houses[PlayerInfo[playerid][pInHouse]][hInteriorID]); SetPlayerPos( playerid, Houses[PlayerInfo[playerid][pInHouse]][hInteriorX], Houses[PlayerInfo[playerid][pInHouse] ][hInteriorY], Houses[PlayerInfo[playerid][pInHouse]][hInteriorZ]); } } for( new i = 0; i < sizeof( Businesses ); i++ ) { if(IsPlayerInRangeOfPoint( playerid, 3, Businesses[i][bExteriorX], Businesses[i][bExteriorY], Businesses[i][bExteriorZ]) ) { if(GetPlayerVirtualWorld( playerid ) == 0 ) { if(Businesses[i][bLockStatus] == 0 ) { SetPlayerVirtualWorld( playerid, 65000+i);UlazInfo[playerid] = 2; SetPlayerInterior( playerid, Businesses[i][bInteriorID]); SetPlayerPos( playerid, Businesses[i][bInteriorX], Businesses[i][bInteriorY], Businesses[i][bInteriorZ]); SendClientMessage( playerid, WHITE, "Usao si u firmu. Koristi /help da vidis koje komande su ti dostupne ovdje!" ); PlayerInfo[playerid][pInBusiness] = i; } else { format(string, sizeof(string), "~g~Firma je ~r~Zatvorena"); TextDrawSetString(Firmazakljucana, string); TextDrawShowForPlayer(playerid, Firmazakljucana); SetTimerEx("UnistikucaenterTxT",8000, false, "i", playerid); //SendClientMessage( playerid, WHITE, "Firma je zatvorena!" ); } } } } if (PlayerToPoint(3.0, playerid,1481.0206,-1771.1138,18.7958)) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,387.7978,173.8582,1008.3828); GameTextForPlayer(playerid, "~w~Dobrodosli u Gradsku Vijecnicu", 5000, 1); PlayerInfo[playerid][pInt] = 3;UlazInfo[playerid] = 3; PlayerInfo[playerid][pLocal] = 241; } if (IsPlayerInRangeOfPoint( playerid,3.0,2362.9539,-654.0048,128.9525)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 ) { SCM(playerid, 0xFF8080FF, "Mi ne znamo o cemu govorite"); return 1; } if(GetPVarInt(playerid, "Posao") == 4) { SetPlayerInterior(playerid,5); SetPlayerPos(playerid,318.68615722656,1114.8942871094,1083.8828125); GameTextForPlayer(playerid, "~w~Dobrodosao u obicnu kucu", 5000, 1); PlayerInfo[playerid][pInt] = 5;UlazInfo[playerid] = 4; PlayerInfo[playerid][pLocal] = 5; } } if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.4749,1169.5908,10.8203)) { SetPlayerPos(playerid, 1705.3492,1183.5206,35.8359);UlazInfo[playerid] = 5; } if (IsPlayerInRangeOfPoint( playerid,3.0,2508.2346,-2205.7024,13.5469)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 ) { SCM(playerid, 0xFF8080FF, "Mi ne znamo o cemu govorite"); return 1; } if(GetPVarInt(playerid, "Posao") == 4) { SetPlayerInterior(playerid,2);UlazInfo[playerid] = 6; SetPlayerPos(playerid,2541.9001464844, -1304.0466308594, 1025.0703125); GameTextForPlayer(playerid, "~w~Dobrodosao u fabriku", 5000, 1); PlayerInfo[playerid][pInt] = 2; PlayerInfo[playerid][pLocal] = 2; } } if (PlayerToPoint(3.0, playerid,1172.3878173828,-1325.3787841797,15.406136512756)) { SetPlayerInterior(playerid,18);UlazInfo[playerid] = 7; SetPlayerPos(playerid,1726.8814697266,-1638.4230957031,20.22322845459); GameTextForPlayer(playerid, "~w~LS Medical Department", 5000, 1); PlayerInfo[playerid][pInt] = 18; } if (PlayerToPoint(3.0, playerid,1147.9493408203,-1343.2375488281,13.647164344788)) { SetPlayerInterior(playerid,0);UlazInfo[playerid] = 8; SetPlayerPos(playerid,1163.3824462891,-1329.9652099609,31.484870910645); GameTextForPlayer(playerid, "~w~LS Medical Department Helipad", 5000, 1); PlayerInfo[playerid][pInt] = 0; } else if (PlayerToPoint(3.0, playerid,972.26409912109,-1544.4708251953,13.603563308716)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { SetPlayerInterior(playerid,10);UlazInfo[playerid] = 9; SetPlayerPos(playerid,246.44731140137,107.80811309814,1003.21875); PlayerInfo[playerid][pInt] = 10; } } else if (PlayerToPoint(3.0, playerid,1462.3958,-1012.3912, 26.8438)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2305.6890,-16.0881,26.7496);UlazInfo[playerid] = 10; PlayerInfo[playerid][pInt] = 0; } else if (PlayerToPoint(3.0, playerid,970.23889160156,-1520.3181152344,13.549715042114)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { SetPlayerInterior(playerid,0);UlazInfo[playerid] = 11; SetPlayerPos(playerid,962.7734375,-1515.7562255859,23.836959838867); PlayerInfo[playerid][pInt] = 0; } } else if (PlayerToPoint(3.0, playerid,611.0582,-583.4951,18.2109)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { SetPlayerInterior(playerid,3);UlazInfo[playerid] = 12; SetPlayerPos(playerid,288.8122,166.9863,1007.1719); PlayerInfo[playerid][pInt] = 0; } } else if (PlayerToPoint(3.0, playerid,627.5256,-571.8169,17.6686)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { SetPlayerInterior(playerid,3);UlazInfo[playerid] = 13; SetPlayerPos(playerid,238.72360229492,138.92004394531,1003.0234375); PlayerInfo[playerid][pInt] = 3; } } else if (PlayerToPoint(3.0, playerid,1221.9865722656, -1811.9674072266, 16.59375)) { if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { SetPlayerInterior(playerid,3);UlazInfo[playerid] = 14; SetPlayerPos(playerid,1043.6527099609,10.261295318604,1001.2844848633); PlayerInfo[playerid][pInt] = 3; } } else if (PlayerToPoint(3.0, playerid, 1213.1655273438, -1655.0930175781,11.796875)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerInterior(playerid,3);UlazInfo[playerid] = 15; SetPlayerPos(playerid, -2636.8112792969,1403.1235351563,906.4609375); PlayerInfo[playerid][pInt] = 3; } } else if (PlayerToPoint(3.0, playerid, -2634.4772949219, 1409.7459716797,906.46466064453)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerInterior(playerid,0);UlazInfo[playerid] = 16; SetPlayerPos(playerid, 1274.5483398438,-1689.0384521484,34.79907989502); PlayerInfo[playerid][pInt] = 0; } } else if (PlayerToPoint(3.0, playerid,1038.3101806641, -3.9410219192505, 1001.2844848633)) { if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { SetPlayerInterior(playerid,0);UlazInfo[playerid] = 17; SetPlayerPos(playerid,1204.7012939453, -1812.1450195313, 30.035457611084); PlayerInfo[playerid][pInt] = 0; } } else if (PlayerToPoint(3.0, playerid,246.49775695801,88.030456542969,1003.640625)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { GameTextForPlayer(playerid, "~w~PD Helipad", 5000, 1); SetPlayerInterior(playerid,0);UlazInfo[playerid] = 18; SetPlayerPos(playerid, 1565.080078125,-1686.3544921875,28.395587921143); } } else if (PlayerToPoint(3.0, playerid,1644.2742919922,-1842.2598876953,13.542934417725)) { if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { GameTextForPlayer(playerid, "~y~Yakuza ~n~~w~", 5000, 1); SetPlayerInterior(playerid,1);UlazInfo[playerid] = 19; SetPlayerPos(playerid, -2158.8403320313,642.78790283203,1052.375); } } else if (PlayerToPoint(3.0, playerid,-2170.9333496094, 645.29437255859, 1057.59375)) { if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { GameTextForPlayer(playerid, "~y~Yakuza ~n~~w~helipad", 5000, 1); SetPlayerInterior(playerid,0);UlazInfo[playerid] = 20; SetPlayerPos(playerid, 1663.3522949219, -1793.3341064453, 36.332160949707); } } else if (PlayerToPoint(3.0, playerid,690.40307617188,-1276.0355224609,13.559878349304)) { if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5) { GameTextForPlayer(playerid, "~y~La Cosa ~n~~w~ Nostra", 5000, 1); SetPlayerInterior(playerid,5);UlazInfo[playerid] = 21; SetPlayerPos(playerid, 1261.1790771484,-785.58453369141,1091.90625); } } else if (PlayerToPoint(3.0, playerid,2795.6608886719,-1619.4602050781,10.921875)) { if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12) { GameTextForPlayer(playerid, "~y~Mara ~n~~w~ Salvatrucha", 5000, 1); SetPlayerInterior(playerid,18);UlazInfo[playerid] = 22; SetPlayerPos(playerid, -229.0830078125, 1401.263671875, 27.765625); } } else if (PlayerToPoint(3.0, playerid,-217.90686035156,1402.7664794922,27.7734375)) { if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12) { GameTextForPlayer(playerid, "~y~MS13 ~n~~w~ Helipad", 5000, 1); SetPlayerInterior(playerid,0);UlazInfo[playerid] = 23; SetPlayerPos(playerid, 2791.8693847656, -1629.4299316406, 21.366069793701); } } else if (PlayerToPoint(3.0, playerid,1287.2922,-772.3537,1091.9063)) { if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5) { GameTextForPlayer(playerid, "~y~LCN ~n~~w~ Balkon", 5000, 1); SetPlayerInterior(playerid,0);UlazInfo[playerid] = 24; SetPlayerPos(playerid, 720.7682,-1276.9056,17.6484); } } else if (PlayerToPoint(3.0, playerid,2481.03515625,-1536.6405029297,24.165042877197)) { if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13) { GameTextForPlayer(playerid, "~y~Crips ~n~~w~", 5000, 1); SetPlayerInterior(playerid,3);UlazInfo[playerid] = 25; SetPlayerPos(playerid, 966.53601074219, -53.183700561523, 1001.1245727539); } } else if (PlayerToPoint(3.0, playerid,-2022.9575,-114.8977,1035.1719)) { if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9) { GameTextForPlayer(playerid, "~y~CNN ~n~~w~ Helipad", 5000, 1); SetPlayerInterior(playerid,0);UlazInfo[playerid] = 26; SetPlayerPos(playerid, 319.6607,-1509.1868,76.5391); } } else if (PlayerToPoint(3.0, playerid,302.9536,-1534.1265,24.9219)) { if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9) { GameTextForPlayer(playerid, "~y~Cable News ~n~~w~Network", 5000, 1); SetPlayerInterior(playerid,3);UlazInfo[playerid] = 27; SetPlayerPos(playerid, -2026.9858398438, -104.23425292969, 1035.171875); } } else if (PlayerToPoint(3.0, playerid,324.0020,-1518.4167,36.0325)) { if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9) { GameTextForPlayer(playerid, "~y~Cable News ~n~~w~Network", 5000, 1); SetPlayerInterior(playerid,3);UlazInfo[playerid] = 28; SetPlayerPos(playerid, -2029.8651123047, -119.2935333252, 1035.171875); } } else if (PlayerToPoint(3.0, playerid,1553.1412,-1675.6227,16.1953)) { SetPlayerInterior(playerid,6);UlazInfo[playerid] = 29; SetPlayerPos(playerid,246.7840,63.9002,1003.6406); } } return 1; }