02.08.2015, 22:36
Olб pessoal, trago um map que executei em LV, й uma Lotйrica para servidores RPG, e tambйm possui um mini banco.
Espero que gostem..
Texturas + Create:
Remove:
Teleporte para Interior:
Espero que gostem..
Texturas + Create:
PHP код:
//=========== Loterica =================||
new Loterica= CreateDynamicObject(13361, 2062.75781, 2064.29004, 16.66680, 0.00000, 0.00000, -90.00000);// Lуterica
SetDynamicObjectMaterialText(Loterica, 1, "·", OBJECT_MATERIAL_SIZE_32x32, "Arial", 1, 1, 0xFF4169E1, 0, 0);
SetDynamicObjectMaterial(Loterica, 0, 16067, "des_stownmots1", "shingles2", 0xFF1F1717);// Teto
SetDynamicObjectMaterial(Loterica, 2, 4586, "skyscrap3_lan2", "sl_skyscrpr05");// Fundo da janelas
SetDynamicObjectMaterial(Loterica, 3, 16067, "des_stownmots1", "shingles2", 0xFF1F1717);// Laterial da saliencia do teto
SetDynamicObjectMaterial(Loterica, 5, 16067, "des_stownmots1", "shingles2", 0xFF4169E1);// Poste da pizza
SetDynamicObjectMaterial(Loterica, 6, 16067, "des_stownmots1", "shingles2", 0xFF1F1717);// Fundo da saliencia da lateral
SetDynamicObjectMaterial(Loterica, 7, 16067, "des_stownmots1", "LAtranswall1");// Revestimento do porte da pizza
SetDynamicObjectMaterial(Loterica, 8, 14602, "papaerchaseoffice","gun_floor1", 0xFF4169E1);// Paredinha Fundo do letreiro -> Azul
SetDynamicObjectMaterial(Loterica, 10, 16067, "des_stownmots1", "LAtranswall1");// paredes da loterica
CreateDynamicObject(1537, 2065.60913, 2069.16699, 9.78250, 0.00000, 0.00000, 90.00000);// Porta
//
new L2= CreateDynamicObject(19354, 2066.68066, 2068.42080, 16.08250, 0.00000, 0.00000, 0.00000);// Escrever loterica
SetDynamicObjectMaterialText(L2, 0, " Lotйrica", OBJECT_MATERIAL_SIZE_256x128, "Arial", 70, 1, 0xFFFFFFFF, 0, 0);
//
new Cercas[14];
Cercas[0]= CreateDynamicObject(18980, 2107.37480, 2044.32861, 10.31960, 90.00000, 0.00000, 0.00000);// Cerca
Cercas[1]= CreateDynamicObject(18980, 2048.05640, 2032.18774, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[2]= CreateDynamicObject(18980, 2107.37280, 2066.25220, 10.31760, 90.00000, 0.00000, 0.00000);// Cerca
Cercas[3]= CreateDynamicObject(18980, 2107.37280, 2091.24951, 10.31760, 90.00000, 0.00000, 0.00000);// Cerca
Cercas[4]= CreateDynamicObject(18980, 2073.04858, 2103.25244, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[5]= CreateDynamicObject(18980, 2048.05469, 2103.26025, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[6]= CreateDynamicObject(18980, 2035.05372, 2091.26392, 10.31960, 90.00000, 0.00000, 0.00000);// Cerca
Cercas[7]= CreateDynamicObject(18980, 2035.06372, 2066.26343, 10.31760, 90.00000, 0.00000, 0.00000);// Cerca
Cercas[8]= CreateDynamicObject(18980, 2035.06372, 2044.18872, 10.31760, 90.00000, 0.00000, 0.00000);// Cerca
Cercas[9]= CreateDynamicObject(18980, 2073.04858, 2032.18774, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[10]= CreateDynamicObject(18762, 2104.38379, 2032.18774, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[11]= CreateDynamicObject(18762, 2099.39233, 2032.18774, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[12]= CreateDynamicObject(18762, 2104.38379, 2103.27197, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
Cercas[13]= CreateDynamicObject(18762, 2099.39233, 2103.25244, 10.31760, 90.00000, 0.00000, 90.00000);// Cerca
for(new i = 0; i != 14; i++) SetDynamicObjectMaterial(Cercas[i], 0, 16067, "des_stownmots1", "des_ranchwall1",0xFF4169E1);
CreateDynamicObject(1364, 2063.10742, 2052.23218, 10.56570, 0.00000, 0.00000, 0.00000);// Bancos
CreateDynamicObject(1364, 2066.43848, 2077.18896, 10.56570, 0.00000, 0.00000, 90.00000);// Bancos
CreateDynamicObject(1364, 2066.43848, 2059.60425, 10.56570, 0.00000, 0.00000, 90.00000);// Bancos
// ==== Mini Banco ===||
new BancoLV= CreateDynamicObject(19354, 2078.17941, 2096.13892, 12.04700, 0.00000, 0.00000, 90.00000);// Escrever Banco
SetDynamicObjectMaterialText(BancoLV, 0, " Banco", OBJECT_MATERIAL_SIZE_256x128, "Arial", 50, 1, 0xFFFFFFFF, 0, 0);
//
new FrenteB[3];
FrenteB[0]= CreateDynamicObject(19430, 2077.48804, 2096.14697, 13.00410, 90.00000, 0.00000, 90.00000);
FrenteB[1]= CreateDynamicObject(19430, 2077.48804, 2096.29712, 13.00410, 90.00000, 0.00000, 90.00000);
FrenteB[2]= CreateDynamicObject(19430, 2077.48804, 2096.46704, 13.00410, 90.00000, 0.00000, 90.00000);
for(new i = 0; i != 3; i++) SetDynamicObjectMaterial(FrenteB[i], 0, 16067, "des_stownmots1", "shingles2", 0xFF1F1717);
new PFundo= CreateDynamicObject(19449, 2077.51587, 2100.13672, 8.36270, 90.00000, 0.00000, 90.00000);// fundo
SetDynamicObjectMaterial(PFundo, 0, 16067, "des_stownmots1", "des_motelwall3",0xFF196518);
new TetoB[7];
TetoB[0]= CreateDynamicObject(19430, 2077.47559, 2098.30764, 13.07410, 0.00000, 90.00000, 90.00000);// teto do Banco
TetoB[1]= CreateDynamicObject(19430, 2078.44532, 2098.30762, 13.06410, 0.00000, 90.00000, 90.00000);// teto do Banco
TetoB[2]= CreateDynamicObject(19430, 2076.55542, 2098.30762, 13.06410, 0.00000, 90.00000, 90.00000);// teto do Banco
TetoB[3]= CreateDynamicObject(19430, 2075.75610, 2097.82056, 9.14780, 90.00000, 0.00000, 0.00000);// Roda-pй do Vidro
TetoB[4]= CreateDynamicObject(19430, 2075.75903, 2098.44751, 9.14980, 90.00000, 0.00000, 0.00000);// Roda-pй do Vidro
TetoB[5]= CreateDynamicObject(19430, 2079.23950, 2098.30054, 9.14980, 90.00000, 0.00000, 0.00000);// Roda-pй do Vidro
TetoB[6]= CreateDynamicObject(19430, 2079.23438, 2097.82056, 9.14780, 90.00000, 0.00000, 0.00000);// Roda-pй do Vidro
for(new i = 0; i != 7; i++) SetDynamicObjectMaterial(TetoB[i], 0, 16067, "des_stownmots1", "des_motelwall3",0xFF196518);
CreateDynamicObject(19325, 2079.23755, 2098.13794, 9.82840, 90.00000, 0.00000, 0.00000);// Vidro
CreateDynamicObject(19325, 2075.76685, 2098.13794, 9.82840, 90.00000, 0.00000, 0.00000);// Vidro
CreateDynamicObject(2942, 2076.75806, 2099.65332, 10.46030, 0.00000, 0.00000, 0.00000);// Caixa Rбpido
CreateDynamicObject(2942, 2078.35376, 2099.65332, 10.46030, 0.00000, 0.00000, 0.00000);// Caixa Rбpido
CreateDynamicObject(19121, 2079.58374, 2096.13477, 10.26600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2072.80054, 2073.40137, 10.36600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2066.15674, 2084.40649, 10.36600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2047.59229, 2084.41821, 10.36600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2072.80444, 2064.50049, 10.36600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2047.55920, 2052.84961, 10.36600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2066.32788, 2052.76099, 10.36600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(19121, 2075.39160, 2096.13477, 10.28600, 0.00000, 0.00000, 0.40600);// Luzes
CreateDynamicObject(1345, 2046.93591, 2076.93115, 10.58850, 0.00000, 0.00000, -90.00000);// Lixos
CreateDynamicObject(1345, 2046.93591, 2082.73389, 10.58850, 0.00000, 0.00000, -90.00000);// Lixos
CreateDynamicObject(1345, 2046.93591, 2079.85938, 10.58850, 0.00000, 0.00000, -90.00000);// Lixos
CreateDynamicObject(1265, 2046.21167, 2081.41602, 10.20260, 0.00000, 0.00000, 0.00000);// Lixos
CreateDynamicObject(1265, 2046.98608, 2076.95459, 11.65910, 0.00000, 0.00000, 0.00000);// Lixos
CreateDynamicObject(1265, 2046.93274, 2080.08130, 11.65910, 0.00000, 0.00000, 0.00000);// Lixos
CreateDynamicObject(1265, 2045.96875, 2079.19409, 10.18260, 0.00000, 0.00000, 0.00000);// Lixos
CreateDynamicObject(1265, 2047.08557, 2078.27222, 10.18260, 0.00000, 0.00000, 0.00000);// Lixos
PHP код:
// ================ Loterica =================||
RemoveBuildingForPlayer(playerid, 7720, 2074.7578, 2048.0703, 9.8438, 0.25);
RemoveBuildingForPlayer(playerid, 7531, 2074.7578, 2048.0703, 9.8438, 0.25);
RemoveBuildingForPlayer(playerid, 7918, 2074.7578, 2048.0703, 9.8438, 0.25);
RemoveBuildingForPlayer(playerid, 1522, 2084.7031, 2073.2734, 10.0391, 0.25);
RemoveBuildingForPlayer(playerid, 955, 2085.7734, 2071.3594, 10.4531, 0.25);
PHP код:
//Topo
new gPickUp;
new gPickUp2;
PHP код:
public OnGameModeInit()
{
gPickUp = CreatePickup(1239,1,2066.4336, 2068.4292, 10.6310);
gPickUp2 = CreatePickup(1239,1,246.4990,107.6432,1003.2188);
Create3DTextLabel("Lotйrica [LV]", 0xFFFFFFFF, 2066.4336, 2068.4292, 10.6610, 50, 0, 0);
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid) {
if (pickupid == gPickUp)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
}
if (pickupid == gPickUp2)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2069.7405,2068.6423,10.8203);
}
}