04.01.2019, 13:40
(
Last edited by MituhBR; 04/01/2019 at 03:20 PM.
)
Introduзгo
Esse й o primeiro mapa que eu posto aqui no fуrum, o mapa se trata de uma pequena oficina, um posto e um mercadinho em Fort Carson (avб), fiz ele porque Fort Carson tem pouca coisa jб que й uma cidade bem pequena e a maioria dos objetos que vocк remove fazem um buraco no chгo (sгo todos grudados, como em Dillimore). O mercado й totalmente texturizado e possue interior com um ator dentro, como se fosse um vendedor.Sу peзo que faзam crнticas construtivas e nгo retirem os crйditos.
PHP Code:
// Crйditos: MituhBR
// TOPO DO SEU GM OU FS
#pragma tabsize 0
new postoFC;
new camofiFC[17];
new mercdolly;
new entrarmercdolly;
new sairmercdolly;
new AtorMercdolly;
new letmercdolly;
#define COLOUR_INFORMACAO 0xFFFF00FF
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 16618, -117.7656, 1079.4609, 22.2188, 0.25);
RemoveBuildingForPlayer(playerid, 16740, -152.3203, 1144.0703, 30.3047, 0.25);
RemoveBuildingForPlayer(playerid, 16386, -117.7656, 1079.4609, 22.2188, 0.25);
RemoveBuildingForPlayer(playerid, 1345, -123.8125, 1079.3984, 19.5000, 0.25);
RemoveBuildingForPlayer(playerid, 16617, -122.7422, 1122.7500, 18.7344, 0.25);
RemoveBuildingForPlayer(playerid, 16618, -117.7656, 1079.4609, 22.2188, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -146.9297, 1108.2344, 20.3359, 0.25);
RemoveBuildingForPlayer(playerid, 16740, -152.3203, 1144.0703, 30.3047, 0.25);
RemoveBuildingForPlayer(playerid, 16386, -117.7656, 1079.4609, 22.2188, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -136.5391, 1108.2344, 20.3359, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -141.7344, 1108.2344, 20.3359, 0.25);
RemoveBuildingForPlayer(playerid, 1412, -133.9844, 1111.0781, 20.0234, 0.25);
RemoveBuildingForPlayer(playerid, 669, -120.8750, 1110.4219, 18.6797, 0.25);
RemoveBuildingForPlayer(playerid, 16385, -122.7422, 1122.7500, 18.7344, 0.25);
RemoveBuildingForPlayer(playerid, 1412, -133.8516, 1134.4141, 20.0234, 0.25);
GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
return 1;
}
public OnGameModeInit() // OU, publicOnFilterScriptInit()
{
// criar pickups
sairmercdolly = CreatePickup(1318, 1, -25.8585,-141.5531,1003.5469, 8);
entrarmercdolly = CreatePickup(1318, 1, -126.2118,1087.7164,19.7489, -1);
// OFICINA e POSTO em FORT CARSON
CreateObject(12943, -112.33630, 1122.07239, 18.73380, 0.00000, 0.00000, -90.12000);
CreateObject(12925, -121.20576, 1122.03467, 18.73152, 0.00000, 0.00000, -269.93985);
CreateObject(19381, -128.62151, 1113.17859, 18.65520, 0.00000, 90.00000, 0.00000);
CreateObject(19381, -128.60638, 1122.76196, 18.65520, 0.00000, 90.00000, 0.00000);
CreateObject(19381, -128.59148, 1132.35059, 18.65520, 0.00000, 90.00000, 0.00000);
CreateObject(19381, -128.60933, 1133.58191, 18.65520, 0.00000, 90.00000, 0.00000);
CreateObject(19381, -124.27046, 1133.67871, 18.65520, 0.00000, 90.00000, 11.40000);
CreateObject(19381, -122.31264, 1134.27979, 18.65520, 0.00000, 90.00000, 9.54000);
CreateObject(19373, -118.11877, 1131.39673, 18.65850, 0.00000, 90.00000, 99.65999);
CreateObject(19817, -112.26830, 1123.10669, 18.69770, 0.00000, 0.00000, 0.00000);
CreateObject(19899, -115.71120, 1115.58081, 18.73780, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -108.69535, 1114.63672, 18.73875, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -108.69540, 1115.29675, 18.73870, 0.00000, 0.00000, 0.00000);
CreateObject(19627, -108.80330, 1115.32471, 19.61300, 0.10000, 0.40000, 50.00000);
CreateObject(18633, -108.63520, 1114.77588, 19.63400, 0.00000, 90.00000, 21.10000);
CreateObject(19899, -115.82345, 1125.03357, 18.73780, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -108.68043, 1118.77612, 18.73870, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -108.68272, 1119.41748, 18.73870, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -108.68270, 1119.41748, 19.61870, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -108.68040, 1118.77612, 19.61870, 0.00000, 0.00000, 0.00000);
CreateObject(18644, -108.91400, 1114.58057, 19.61340, 90.00000, 0.00000, -34.98000);
CreateObject(19900, -116.00751, 1117.78174, 18.73870, 0.00000, 0.00000, -180.29991);
CreateObject(19900, -115.99974, 1118.43274, 18.73870, 0.00000, 0.00000, -180.29991);
CreateObject(18635, -115.96980, 1117.84875, 19.61300, 90.00000, 0.00000, 340.00000);
CreateObject(19631, -116.00460, 1118.26990, 19.63310, 0.00000, 90.00000, 336.04010);
postoFC = CreateObject(18232, -84.16364, 1071.30676, 18.73120, 0.00000, 0.00000, -179.88000);
SetObjectMaterial(postoFC, 3, 3979, "civic01_lan", "sl_laglasswall2", 0xFFFFFFFF);
SetObjectMaterial(postoFC, 2, 3979, "civic01_lan", "sl_laglasswall2", 0xFFFFFFFF);
SetObjectMaterial(postoFC, 6, 12924, "sw_block06", "alleydoor4", 0xFFFFFFFF);
SetObjectMaterial(postoFC, 4, 18265, "w_town3cs_t", "des_door2", 0xFFFFFFFF);
SetObjectMaterial(postoFC, 5, 16150, "ufo_bar", "GEwhite1_64", 0xFFFFFFFF);
SetObjectMaterial(postoFC, 1, 16150, "ufo_bar", "GEwhite1_64", 0xFFFFFFFF);
CreateObject(18452, -97.58770, 1081.52783, 21.69360, 0.00000, 0.00000, 0.00000);
CreateObject(1686, -97.56620, 1084.38721, 18.94070, 0.00000, 0.00000, -89.40000);
CreateObject(1686, -97.56620, 1078.76721, 18.94070, 0.00000, 0.00000, -89.40000);
CreateObject(12943, -142.37798, 1127.96106, 18.73380, 0.00000, 0.00000, -90.12000);
CreateObject(19872, -142.34288, 1126.35168, 17.04350, 0.00000, 0.00000, 0.00000);
CreateObject(7312, -142.36980, 1126.42700, 20.88200, 0.00000, 0.00000, 90.00000);
CreateObject(19900, -138.88811, 1121.09802, 18.74451, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -138.87970, 1120.45740, 18.74450, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -138.87970, 1120.45740, 19.62450, 0.00000, 0.00000, 0.00000);
CreateObject(19900, -138.87970, 1121.09741, 19.62450, 0.00000, 0.00000, 0.00000);
camofiFC[0] = CreateObject(19447, -118.59264, 1112.33105, 18.65520, 0.00000, 90.00000, 90.00000);
camofiFC[1] = CreateObject(19447, -118.58157, 1110.11609, 18.65520, 0.00000, 90.00000, 90.00000);
camofiFC[2] = CreateObject(12943, -142.37798, 1127.96106, 18.73380, 0.00000, 0.00000, -90.12000);
camofiFC[3] = CreateObject(19447, -144.64259, 1131.14478, 18.65700, 0.00000, 90.00000, 0.00000);
camofiFC[4] = CreateObject(19447, -141.14810, 1131.14026, 18.65700, 0.00000, 90.00000, 0.00000);
camofiFC[5] = CreateObject(19447, -140.11099, 1131.14917, 18.65700, 0.00000, 90.00000, 0.00000);
camofiFC[6] = CreateObject(19447, -144.66130, 1124.79236, 18.65700, 0.00000, 90.00000, 0.00000);
camofiFC[7] = CreateObject(19447, -141.23528, 1124.79529, 18.65700, 0.00000, 90.00000, 0.00000);
camofiFC[8] = CreateObject(19447, -140.15530, 1124.79529, 18.65700, 0.00000, 90.00000, 0.00000);
camofiFC[9] = CreateObject(19447, -142.49307, 1118.26526, 18.65700, 0.00000, 90.00000, -90.78001);
camofiFC[10] = CreateObject(19447, -142.55212, 1114.80383, 18.65700, 0.00000, 90.00000, -90.78001);
camofiFC[11] = CreateObject(19447, -142.57153, 1111.36292, 18.65700, 0.00000, 90.00000, -90.78001);
camofiFC[12] = CreateObject(19447, -142.60800, 1110.02234, 18.65700, 0.00000, 90.00000, -90.78001);
camofiFC[13] = CreateObject(19447, -112.35723, 1112.32581, 18.65520, 0.00000, 90.00000, 90.00000);
camofiFC[14] = CreateObject(19447, -112.36604, 1110.10339, 18.65520, 0.00000, 90.00000, 90.00000);
camofiFC[15] = CreateObject(19447, -118.59264, 1112.33105, 18.65520, 0.00000, 90.00000, 90.00000);
camofiFC[16] = CreateObject(19447, -118.58157, 1110.11609, 18.65520, 0.00000, 90.00000, 90.00000);
for(new i = 0; i != 17; i++) SetObjectMaterial(camofiFC[i], 0, 18202, "w_towncs_t", "plaintarmac1", 0xFFFFFFFF);
// Mercado Dolly em Fort Carson
mercdolly = CreateObject(18240, -129.85727, 1081.71985, 18.70520, 0.00000, 0.00000, -179.69991);
SetObjectMaterial(mercdolly, 2, 18202, "w_towncs_t", "wall256hi", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 10, 12855, "cunte_cop", "sw_brick05", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 1, 5134, "wasteland_las2", "genroof01_128", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 3, 5134, "wasteland_las2", "genroof01_128", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 12, 3979, "civic01_lan", "sl_laglasswall2", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 13, 6098, "tempo22_law", "GB_shopdoor01", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 14, 3925, "weemap", "metaldoor01_256", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 9, 18265, "w_town3cs_t", "roof04L256", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 11, 19297, "matlights", "invisible", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 7, 6336, "sunset02_law2", "whiteconc01", 0xFFFFFFFF);
SetObjectMaterial(mercdolly, 8, 16150, "ufo_bar", "GEwhite1_64", 0xFFFFFFFF);
letmercdolly = CreateObject(19355, -128.13680, 1086.56506, 26.76240, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(mercdolly, 0, 12855, "cunte_cop", "sw_brick05", 0xFFFFFFFF);
SetObjectMaterialText(letmercdolly, "{FF0000}Mercado\nDolly", 0, 50, "Impact", 24, 1, 0xFFFFFFFF, 0, 1);
// CRIAR ATOR
AtorMercdolly = CreateActor(39,-22.3295,-140.3181,1003.5469,1.0723);
SetActorVirtualWorld(AtorMercdolly, 8);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == entrarmercdolly)
{
SetPlayerPos(playerid, -25.132598,-139.066986,1003.546875);
SetPlayerInterior(playerid, 16);
SetPlayerVirtualWorld(playerid, 8);
SendClientMessage(playerid,COLOUR_INFORMACAO,"[Mercado]: Seja bem-vindo ao Mercado Dolly, ficamos abertos 24h");
return 1;
}
if(pickupid == sairmercdolly)
{
SetPlayerPos(playerid, -125.8805,1090.5828,19.7422);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid,273.8198);
SendClientMessage(playerid,COLOUR_INFORMACAO,"[Mercado]: Atй a prуxima compra!");
return 1;
}
return 1;
}
Crйditos
MituhBR - Mapa
SA-MP Team - Por proporcionar a criaзгo desse mapa maravilhoso
MituhBR - Mapa
SA-MP Team - Por proporcionar a criaзгo desse mapa maravilhoso