Bueno es una mansion para administrador o premium o para otra cosa
bueno sin nada ms que decir les dejo la SS y Code
SS:
bueno sin nada ms que decir les dejo la SS y Code
- Código:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define COLOR_RED 0xFF0000FF
new puertaizquierda;
new puertaderecha;
new puertaabierta = 0;
public OnFilterScriptInit()
{
//creacion de las puertas
puertaizquierda = CreateObject(971, -275.5709, -2205.7871, 30.8853, 0.00, 0.00, 293.4002);
puertaderecha = CreateObject(971, -272.0443, -2213.9331, 30.8853, 0.00, 0.00, 293.4002);
}
public OnPlayerConnect(playerid)
{
//mapeo general
RemoveBuildingforPlayer(playerid, 3276, -300.9375, -2148.4219, 28.3203, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -297.1875, -2141.5703, 28.3203, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -257.5625, -2241.5234, 28.3203, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -263.8672, -2231.5781, 28.3203, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -245.3984, -2225.9922, 28.6875, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -245.4375, -2236.6875, 28.4141, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -249.2031, -2244.3984, 28.4141, 0.25);
RemoveBuildingforPlayer(playerid, 17038, -280.1875, -2167.7031, 27.7891, 0.25);
RemoveBuildingforPlayer(playerid, 17037, -288.2734, -2163.5000, 30.0938, 0.25);
RemoveBuildingforPlayer(playerid, 17036, -285.3984, -2151.0469, 27.3828, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -285.9297, -2139.2734, 28.3203, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -274.5781, -2138.6328, 28.4922, 0.25);
RemoveBuildingforPlayer(playerid, 17039, -260.5391, -2182.6094, 26.6875, 0.25);
RemoveBuildingforPlayer(playerid, 17040, -257.5313, -2202.8359, 27.5781, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -254.1406, -2170.7969, 29.0234, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -263.3906, -2140.5938, 28.8281, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -258.0000, -2148.1094, 29.0234, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -256.2500, -2159.3203, 29.0234, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -251.3047, -2181.8047, 29.0234, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -248.0391, -2192.8125, 29.0234, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -244.8594, -2203.8672, 29.0234, 0.25);
RemoveBuildingforPlayer(playerid, 3276, -243.7266, -2214.7266, 28.8984, 0.25);
CreateObject(5706, -262.98, -2197.68, 24.26, 0.00, 0.00, 293.40);
CreateObject(5706, -276.06, -2167.43, 24.24, 0.00, 0.00, 293.40);
CreateObject(5706, -255.11, -2158.36, 24.46, 0.00, 0.00, 293.40);
CreateObject(5706, -242.01, -2188.68, 24.44, 0.00, 0.00, 293.40);
CreateObject(9241, -233.43, -2215.85, 29.79, 0.00, 0.00, 293.40);
CreateObject(5706, -234.74, -2214.08, 24.48, 0.00, 0.00, 203.40);
CreateObject(5706, -232.70, -2218.80, 24.50, 0.00, 0.00, 203.40);
CreateObject(3607, -255.14, -2162.39, 34.03, 0.00, 0.00, 293.40);
CreateObject(987, -287.36, -2149.21, 27.45, 0.00, 0.00, 203.40);
CreateObject(987, -298.14, -2153.79, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -276.40, -2144.46, 27.45, 0.00, 0.00, 203.40);
CreateObject(987, -265.43, -2139.70, 27.45, 0.00, 0.00, 203.40);
CreateObject(987, -254.47, -2134.93, 27.45, 0.00, 0.00, 203.40);
CreateObject(987, -243.52, -2130.23, 27.45, 0.00, 0.00, 203.40);
CreateObject(987, -238.95, -2141.01, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -234.16, -2151.96, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -229.40, -2162.94, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -224.64, -2173.90, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -219.88, -2184.88, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -215.12, -2195.84, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -210.37, -2206.80, 22.56, 0.00, 0.00, 113.40);
CreateObject(987, -205.60, -2217.73, 22.60, 0.00, 0.00, 113.40);
CreateObject(987, -200.83, -2228.70, 22.61, 0.00, 0.00, 113.40);
CreateObject(987, -211.60, -2233.29, 22.71, 0.00, 0.00, 23.40);
CreateObject(987, -222.58, -2238.06, 27.45, 0.00, 0.00, 23.40);
CreateObject(987, -233.56, -2242.83, 27.45, 0.00, 0.00, 23.40);
CreateObject(987, -244.53, -2247.55, 27.45, 0.00, 0.00, 23.40);
CreateObject(987, -293.39, -2164.79, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -288.62, -2175.75, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -283.84, -2186.68, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -249.12, -2236.74, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -253.87, -2225.78, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -258.63, -2214.80, 27.49, 0.00, 0.00, 293.40);
CreateObject(987, -269.59, -2219.29, 27.45, 0.00, 0.00, 23.40);
CreateObject(987, -210.37, -2206.80, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -205.60, -2217.73, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -200.83, -2228.70, 27.45, 0.00, 0.00, 113.40);
CreateObject(987, -211.60, -2233.29, 27.45, 0.00, 0.00, 23.40);
CreateObject(700, -254.74, -2216.05, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -252.95, -2221.57, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -250.44, -2227.31, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -247.68, -2233.61, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -245.35, -2239.21, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -243.09, -2243.55, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -238.32, -2241.31, 27.87, 0.00, 0.00, 0.00);
CreateObject(728, -276.12, -2194.98, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -278.10, -2190.62, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -280.16, -2185.80, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -282.02, -2181.54, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -284.23, -2176.88, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -286.04, -2172.14, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -288.04, -2167.88, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -290.24, -2162.98, 27.92, 0.00, 0.00, 58.15);
CreateObject(728, -292.49, -2157.95, 27.92, 0.00, 0.00, 58.15);
CreateObject(700, -233.33, -2239.08, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -228.44, -2237.12, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -223.77, -2234.85, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -218.97, -2232.43, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -214.08, -2230.61, 27.57, 0.00, 0.00, 0.00);
CreateObject(700, -209.42, -2228.30, 27.66, 0.00, 0.00, 0.00);
CreateObject(3749, -272.11, -2209.11, 33.07, 0.00, 0.00, 293.40);
CreateObject(987, -281.46, -2192.18, 27.49, 0.00, 0.00, 293.40);
CreateObject(700, -209.14, -2223.72, 26.76, 0.00, 0.00, 0.00);
CreateObject(700, -211.57, -2218.97, 26.24, 0.00, 0.00, 0.00);
CreateObject(700, -213.92, -2213.72, 27.67, 0.00, 0.00, 0.00);
CreateObject(700, -216.51, -2208.49, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -218.71, -2203.11, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -220.93, -2197.68, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -223.28, -2192.15, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -225.59, -2186.75, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -228.07, -2181.03, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -230.74, -2175.24, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -233.10, -2169.54, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -235.46, -2164.03, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -237.79, -2158.38, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -240.18, -2152.87, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -242.39, -2147.82, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -244.45, -2142.98, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -246.41, -2138.11, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -251.83, -2136.69, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -256.85, -2138.67, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -262.10, -2140.68, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -267.47, -2143.01, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -272.37, -2145.23, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -277.16, -2147.65, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -282.29, -2149.91, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -287.69, -2152.05, 27.87, 0.00, 0.00, 0.00);
CreateObject(700, -292.59, -2153.95, 27.87, 0.00, 0.00, 0.00);
CreateObject(9833, -279.71, -2163.94, 31.25, 0.00, 0.00, 0.00);
CreateObject(9833, -273.83, -2177.85, 31.25, 0.00, 0.00, 0.00);
CreateObject(3604, -236.76, -2185.90, 30.80, 0.00, 0.00, 293.40);
CreateObject(5152, -272.87, -2204.34, 27.04, 0.00, 0.00, 23.40);
CreateObject(5152, -272.03, -2206.34, 27.04, 0.00, 0.00, 23.40);
CreateObject(5152, -271.18, -2208.32, 27.04, 0.00, 0.00, 23.40);
CreateObject(5152, -270.33, -2210.31, 27.04, 0.00, 0.00, 23.40);
CreateObject(5152, -269.48, -2212.30, 27.04, 0.00, 0.00, 23.40);
CreateObject(5152, -269.13, -2213.10, 27.04, 0.00, 0.00, 23.40);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/apgarage", cmdtext, true) == 0)
{
switch (puertaabierta){
case 0:{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -274.3036, -2209.7561, 32.2228)){
puertaabierta = 1;
MoveObject(puertaizquierda, -277.3982, -2201.4585, 30.8853, 3.0); //abre la puerta izq
MoveObject(puertaderecha, -270.1778, -2218.2302, 30.8853, 3.0); //abre la puerta der
}else{
SendClientMessage(playerid, COLOR_RED, "debes estar cerca de la puerta para usar este comando");
}
return 1;
}
case 1:{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -274.3036, -2209.7561, 32.2228)){
puertaabierta = 0;
MoveObject(puertaizquierda, -275.5709, -2205.7871, 30.8853, 3.0); //cierra la puerta izq
MoveObject(puertaderecha, -272.0443, -2213.9331, 30.8853, 3.0); //cierra la puerta der
}else{
SendClientMessage(playerid, COLOR_RED, "debes estar cerca de la puerta para usar este comando");
}
return 1;
}
}
}
return 0;
}
#endif
SS: