Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //HQ cia, creditos a Vinicius_TroLL ou Style_MagnaTa
- #include <a_samp>
- new PortaoCia;
- new PortaoCia2;
- forward PortoesCia();
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- public OnFilterScriptInit()
- {
- Create3DTextLabel("Cia\n{FFFFFF}Digite /Cia para passar",0x0077F6AA,1386.3472,-2893.2156,12.1800,25.0,0);
- Create3DTextLabel("Cia\n{FFFFFF}Digite /Cia para passar",0x0077F6AA,1411.2500,-2746.4653,5.8008,25.0,0);
- //HQ da Cia
- CreateObject(18753, 1361.91, -2947.01, 10.68, 0.00, 0.00, 351.54);
- CreateObject(19313, 1429.43, -2915.83, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1398.09, -2889.79, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1411.92, -2891.90, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1425.69, -2894.03, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1431.51, -2901.97, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1427.33, -2929.68, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1425.26, -2943.51, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1423.18, -2957.33, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1421.12, -2971.15, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1419.06, -2984.94, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1417.02, -2998.73, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1415.26, -3010.97, 14.26, 0.00, 0.00, 261.56);
- CreateObject(19313, 1407.48, -3016.60, 14.26, 0.00, 0.00, 172.22);
- CreateObject(19313, 1393.67, -3014.69, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1379.91, -3012.66, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1366.12, -3010.58, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1352.33, -3008.50, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1338.55, -3006.43, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1324.74, -3004.38, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1310.92, -3002.34, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1298.24, -3000.47, 14.26, 0.00, 0.00, 171.61);
- CreateObject(19313, 1292.44, -2992.49, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1294.57, -2978.66, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1296.74, -2964.89, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1298.80, -2951.05, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1300.75, -2937.22, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1302.96, -2923.50, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1305.11, -2909.64, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1307.23, -2895.82, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1309.13, -2883.50, 14.26, 0.00, 0.00, 81.34);
- CreateObject(19313, 1317.08, -2877.68, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1330.91, -2879.85, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1344.68, -2882.06, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1358.41, -2884.25, 14.26, 0.00, 0.00, 351.09);
- CreateObject(19313, 1372.60, -2885.87, 14.26, 0.00, 0.00, 355.90);
- CreateObject(3976, 1338.56, -2920.44, 31.83, 0.00, 0.00, 171.29);
- CreateObject(972, 1315.65, -2951.44, 6.10, 0.00, 0.00, 262.15);
- AddStaticVehicleEx(490, 1418.5911, -2957.8911, 12.2420, 82.3103, 0, 0, -1);
- AddStaticVehicleEx(490, 1417.2078, -2970.3020, 12.2420, 82.3103, 0, 0, -1);
- AddStaticVehicleEx(490, 1417.6992, -2966.3337, 12.2420, 82.3103, 0, 0, -1);
- AddStaticVehicleEx(490, 1418.1379, -2962.1831, 12.2420, 82.3103, 0, 0, -1);
- AddStaticVehicleEx(493, 1436.2137, -2781.0889, 0.5423, 175.6843, 0, 0, -1);
- AddStaticVehicleEx(493, 1442.4314, -2780.9275, 0.5423, 175.6843, 0, 0, -1);
- AddStaticVehicleEx(493, 1429.6204, -2781.1743, 0.5423, 175.6843, 0, 0, -1);
- AddStaticVehicleEx(497, 1343.8363, -2972.6440, 12.4293, 262.9472, 0, 0, -1);
- AddStaticVehicleEx(497, 1314.6572, -2992.0056, 12.4293, 262.9472, 0, 0, -1);
- AddStaticVehicleEx(497, 1318.3893, -2968.6404, 12.4293, 262.9472, 0, 0, -1);
- AddStaticVehicleEx(497, 1341.4510, -2994.9263, 12.4293, 262.9472, 0, 0, -1);
- AddStaticVehicleEx(523, 1421.3804, -2951.0925, 11.6657, 80.1196, 0, 0, -1);
- AddStaticVehicleEx(523, 1420.9427, -2953.3110, 11.6657, 80.1196, 0, 0, -1);
- AddStaticVehicleEx(523, 1421.8406, -2948.6892, 11.6657, 80.1196, 0, 0, -1);
- AddStaticVehicleEx(523, 1422.3519, -2946.2656, 11.6657, 80.1196, 0, 0, -1);
- AddStaticVehicleEx(522, 1423.0347, -2943.5493, 11.9457, 84.1760, 0, 0, -1);
- AddStaticVehicleEx(522, 1423.2634, -2941.5972, 11.9457, 84.1760, 0, 0, -1);
- AddStaticVehicleEx(522, 1423.4476, -2939.7375, 11.9457, 84.1760, 0, 0, -1);
- AddStaticVehicleEx(522, 1423.6608, -2937.6670, 11.9457, 84.1760, 0, 0, -1);
- AddStaticVehicleEx(596, 1423.5326, -2934.2939, 12.1282, 83.7150, 0, 0, -1);
- AddStaticVehicleEx(596, 1424.0304, -2930.4546, 12.1282, 83.7150, 0, 0, -1);
- AddStaticVehicleEx(596, 1424.5425, -2926.7422, 12.1282, 83.7150, 0, 0, -1);
- AddStaticVehicleEx(596, 1425.0143, -2923.3281, 12.1282, 83.7150, 0, 0, -1);
- //FimHQCia
- //Portoes
- PortaoCia = CreateObject(980, 1385.30, -2887.73, 13.92, 0.00, 0.00, 350.76);
- PortaoCia2 = CreateObject(18789, 1399.29, -2813.86, -11.04, 0.72, -5.16, 260.40);
- //FimPortoes
- print("\n--------------------------------------");
- print(" HQ Cia criado por Style_MagnaTa");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[128];
- if(strcmp(cmd, "/cia", true) == 0)
- {
- if (PlayerToPoint(20.0, playerid, 1386.3472,-2893.2156,12.1800) || PlayerToPoint(20.0, playerid, 1411.2500,-2746.4653,5.8008))
- {
- MoveObject( PortaoCia, 1385.30, -2887.73, 20.82,5);
- MoveObject( PortaoCia2, 1399.58, -2814.27, 4.14,5);
- SetTimer("PortoesCia", 10000, false);
- }
- }
- return 0;
- }
- public PortoesCia()
- {
- MoveObject(PortaoCia,1385.30, -2887.73, 13.92, 2);
- MoveObject(PortaoCia2,1399.29, -2813.86, -11.04, 2);
- return true;
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return true;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement