19.03.2017, 23:07
Criei uma textdraw pra mostrar se o player estб na бrea de carregamento, porйm bugou todas as textdraws. Algumas aparecem e algumas nгo.
Como ficou:
http://imgur.com/a/ZDT9s
Do lado do 69 era pra ter um km/h. Sу porque criei a textdraw, ele sumiu.
Code:
Topo:
OnGameModeInit toda:
Como ficou:
http://imgur.com/a/ZDT9s
Do lado do 69 era pra ter um km/h. Sу porque criei a textdraw, ele sumiu.
Code:
Topo:
PHP код:
new Text:TCarregamento;
new Text:TCarregarp;
PHP код:
public OnGameModeInit()
{
TCarregamento = TextDrawCreate(168.000000, 390.000000, "Area de carregamento de Petroleo");
TextDrawBackgroundColor(TCarregamento, 255);
TextDrawFont(TCarregamento, 2);
TextDrawLetterSize(TCarregamento, 0.410000, 2.599999);
TextDrawColor(TCarregamento, -16777046);
TextDrawSetOutline(TCarregamento, 1);
TextDrawSetProportional(TCarregamento, 1);
TextDrawSetSelectable(TCarregamento, 0);
TCarregarp = TextDrawCreate(262.000000, 413.000000, "~w~/~b~~h~~h~Carregarp");
TextDrawBackgroundColor(TCarregarp, 255);
TextDrawFont(TCarregarp, 2);
TextDrawLetterSize(TCarregarp, 0.410000, 2.599999);
TextDrawColor(TCarregarp, -16777046);
TextDrawSetOutline(TCarregarp, 1);
TextDrawSetProportional(TCarregarp, 1);
TextDrawSetSelectable(TCarregarp, 0);
return 1;
}
PHP код:
public OnGameModeInit()
{
UsePlayerPedAnims();
SendRconCommand("hostname Perfect City RPG | BETA | @BlastHosting.com.br");
SendRconCommand("language Portuguкs - Brasil");
SetGameModeText("Brasil - PC:RPG v1.0");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
DisableInteriorEnterExits();
LimitPlayerMarkerRadius(0);
EnableStuntBonusForAll(0);
SetTimer("CPetroleo", 500, 1);
TCarregamento = TextDrawCreate(168.000000, 390.000000, "Area de carregamento de Petroleo");
TextDrawBackgroundColor(TCarregamento, 255);
TextDrawFont(TCarregamento, 2);
TextDrawLetterSize(TCarregamento, 0.410000, 2.599999);
TextDrawColor(TCarregamento, -16777046);
TextDrawSetOutline(TCarregamento, 1);
TextDrawSetProportional(TCarregamento, 1);
TextDrawSetSelectable(TCarregamento, 0);
TCarregarp = TextDrawCreate(262.000000, 413.000000, "~w~/~b~~h~~h~Carregarp");
TextDrawBackgroundColor(TCarregarp, 255);
TextDrawFont(TCarregarp, 2);
TextDrawLetterSize(TCarregarp, 0.410000, 2.599999);
TextDrawColor(TCarregarp, -16777046);
TextDrawSetOutline(TCarregarp, 1);
TextDrawSetProportional(TCarregarp, 1);
TextDrawSetSelectable(TCarregarp, 0);
// Caminhoes Petroleiro
C_Petro[0] = CreateVehicle(514, 286.4697, 1352.7164, 11.1221, -0.7800, -1, -1, 100);
C_Petro[1] = CreateVehicle(514, 281.3888, 1352.7133, 11.1221, -0.7800, -1, -1, 100);
C_Petro[2] = CreateVehicle(514, 275.9121, 1352.6276, 11.1221, -0.7800, -1, -1, 100);
C_Petro[3] = CreateVehicle(514, 270.6777, 1352.4963, 11.1221, -0.7800, -1, -1, 100);
C_Petro[4] = CreateVehicle(514, 253.5000, 1368.8701, 11.1221, -90.0600, -1, -1, 100);
C_Petro[5] = CreateVehicle(514, 253.5817, 1373.7236, 11.1221, -90.0000, -1, -1, 100);
C_Petro[6] = CreateVehicle(514, 253.5988, 1384.1349, 11.1221, -91.0800, -1, -1, 100);
C_Petro[7] = CreateVehicle(514, 253.6104, 1378.4686, 11.1221, -90.0000, -1, -1, 100);
C_Petro[8] = CreateVehicle(514, 253.4949, 1393.0115, 11.1221, -90.0000, -1, -1, 100);
C_Petro[9] = CreateVehicle(514, 253.3731, 1398.2340, 11.1221, -90.0000, -1, -1, 100);
C_Petro[10] = CreateVehicle(514, 265.7806, 1352.5245, 11.1221, -0.7800, -1, -1, 100);
C_Petro[11] = CreateVehicle(514, 260.1027, 1352.6796, 11.1221, -0.7800, -1, -1, 100);
// TRAILER PETROLEIRO
T_Petro[0] = CreateVehicle(584, 286.3767, 1340.7529, 11.5768, -0.6000, -1, -1, 100);
T_Petro[1] = CreateVehicle(584, 260.0285, 1340.7953, 11.5768, -0.6000, -1, -1, 100);
T_Petro[2] = CreateVehicle(584, 281.3927, 1341.0758, 11.5768, -0.6000, -1, -1, 100);
T_Petro[3] = CreateVehicle(584, 275.7993, 1341.0710, 11.5768, -0.6000, -1, -1, 100);
T_Petro[4] = CreateVehicle(584, 270.5738, 1340.9598, 11.5768, -0.6000, -1, -1, 100);
T_Petro[5] = CreateVehicle(584, 265.6383, 1340.9937, 11.5768, -0.6000, -1, -1, 100);
T_Petro[6] = CreateVehicle(584, 241.6786, 1373.6284, 11.5814, 270.3941, -1, -1, 100);
T_Petro[7] = CreateVehicle(584, 241.6102, 1368.7667, 11.5814, 270.3941, -1, -1, 100);
T_Petro[8] = CreateVehicle(584, 241.7382, 1378.3785, 11.5814, 270.3941, -1, -1, 100);
T_Petro[9] = CreateVehicle(584, 241.8728, 1398.1201, 11.5814, 270.3941, -1, -1, 100);
T_Petro[10] = CreateVehicle(584, 241.7829, 1384.3225, 11.5814, 268.4141, -1, -1, 100);
T_Petro[11] = CreateVehicle(584, 241.8721, 1392.8983, 11.5814, 270.3941, -1, -1, 100);
// SULTAN PETROLEIRO
V_Petro[0] = CreateVehicle(560, 280.8245, 1425.9335, 10.2574, 0.6000, -1, -1, 100);
V_Petro[1] = CreateVehicle(560, 285.6621, 1425.9976, 10.3650, 0.0000, -1, -1, 100);
// OBJETOS PETROLEIRO
CreateObject(41, 370.19220, 1217.85559, 16.86222, 0.00000, 0.00000, 0.00000);
CreateObject(3578, 282.85867, 1421.77112, 10.33836, 0.00000, 0.00000, 1.68000);
CreateObject(3578, 277.44064, 1426.50391, 10.29841, 0.00000, 0.00000, -88.91998);
CreateObject(16091, 290.77234, 1391.04333, 6.09033, 356.85840, 0.00000, 1.46159);
CreateObject(16090, 315.28387, 1390.80945, 5.27344, 356.85840, 0.00000, 3.14159);
CreateObject(16089, 332.93512, 1390.99719, 5.27344, 356.85840, 0.00000, 3.14159);
// FIM
TextHoras = TextDrawCreate(548.125000, 27.416690, " ");
TextDrawLetterSize(TextHoras, 0.578749, 2.008331);
TextDrawAlignment(TextHoras, 1);
TextDrawColor(TextHoras, -1);
TextDrawSetShadow(TextHoras, 0);
TextDrawSetOutline(TextHoras, 1);
TextDrawFont(TextHoras, 3);
TextDrawSetProportional(TextHoras, 1);
TextData = TextDrawCreate(475.624969, 5.833307, " ");
TextDrawLetterSize(TextData, 0.357500, 1.349166);
TextDrawAlignment(TextData, 1);
TextDrawColor(TextData, -1);
TextDrawSetShadow(TextData, 0);
TextDrawSetOutline(TextData, 1);
TextDrawFont(TextData, 3);
TextDrawSetProportional(TextData, 1);
ProcessGameTime();
SetTimer("ProcessGameTime", 1000, true);
SetTimer("AtualizarChatBubble", 1000, true);
SetTimer("SendMSG", 300000, true);
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
A_Aviao[0] = CreateVehicle(592, 1966.7438, -2636.7927, 14.4717, 30.0000, -1, -1, 100);
A_Aviao[1] = CreateVehicle(592, 2007.2888, -2633.1421, 14.4717, 30.0000, -1, -1, 100);
A_Aviao[2] = CreateVehicle(592, 2051.5925, -2633.0779, 14.4717, 30.0000, -1, -1, 100);
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
Create3DTextLabel("{FFFFFF}Agкncia de Empregos\n {FFFFFF}de SF", 0xFFFFFFFF, -2226.9548,251.9774,35.3203, 100, 0);
Create3DTextLabel("{FFFFFF}Agкncia de Empregos\n {FFFFFF}de LS", 0xFFFFFFFF, 1154.0540,-1772.1467,16.5992, 100, 0);
Create3DTextLabel("{FFFFFF}Agкncia de Empregos\n {FFFFFF}de LV", 0xFFFFFFFF, 2196.0325,1677.2983,12.3672, 100, 0);
Create3DTextLabel("{66CDAA}Judite\n{FFFFFF}Precione {00FF00}Y {FFFFFF} para ver as Profissхes",0xFF0000FF,1489.0405,1305.7576,1093.2964,20.0,0);
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
pickupagenciaSF = CreatePickup(1318, 1, -2226.9548,251.9774,35.3203);
pickupagenciaLS = CreatePickup(1318, 1, 1154.0540,-1772.1467,16.5992);
pickupagenciaLV = CreatePickup(1318, 1, 2196.0325,1677.2983,12.3672);
pickupsairagencia = CreatePickup(1318, 1, 1494.4392,1304.0914,1093.2891);
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
CreateActor(211,1489.0405,1305.7576,1093.2964,269.1331);//Agкncia BOT
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
Maleta[0] = CreatePickup(1210, 1, 1917.070556, -2645.118408, 13.546875, -1); // PILOTO
Maleta[1] = CreatePickup(1210, 1, 784.525817, -1332.781860, 13.540882,-1); // JORNALEIRO
Maleta[2] = CreatePickup(1210, 1, 286.2165, 1398.0256, 10.5859, -1); // PETROLEIRO
Maleta[3] = CreatePickup(1210, 1, 2843.762451, 1293.566040, 11.390625, -1); // TAXISTA
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
for(new i = 0; i < MAX_PLAYERS; i++)
{
Velo1[i] = TextDrawCreate(43.000000, 323.000000, "100");
TextDrawBackgroundColor(Velo1[i], 255);
TextDrawFont(Velo1[i], 3);
TextDrawLetterSize(Velo1[i], 0.500000, 1.300000);
TextDrawColor(Velo1[i], -1);
TextDrawSetOutline(Velo1[i], 1);
TextDrawSetProportional(Velo1[i], 1);
TextDrawSetSelectable(Velo1[i], 0);
Velo2 = TextDrawCreate(99.000000, 323.000000, "~g~~h~~h~KM/H");
TextDrawBackgroundColor(Velo2, 255);
TextDrawFont(Velo2, 3);
TextDrawLetterSize(Velo2, 0.500000, 1.300000);
TextDrawColor(Velo2, -1);
TextDrawSetOutline(Velo2, 1);
TextDrawSetProportional(Velo2, 1);
TextDrawSetSelectable(Velo2, 0);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
RelogioPreso[i] = TextDrawCreate(36.543, 311.50, " ");
TextDrawBackgroundColor(RelogioPreso[i], 255);
TextDrawFont(RelogioPreso[i], 1);
TextDrawLetterSize(RelogioPreso[i], 0.294, 1.779);
TextDrawColor(RelogioPreso[i], -1);
TextDrawSetOutline(RelogioPreso[i], 1);
TextDrawSetProportional(RelogioPreso[i], 1);
}
Loop(i, MAX_VEHICLES)
{
SetVehicleNumberPlate(i, "PC - RPG");
}
return 1;
}