25.08.2011, 18:52
(
Последний раз редактировалось [R] ousenber [K]; 25.08.2011 в 20:24.
)
To Com um erro que jah fiz tudo pra funcionar, so que nгo da , alguem ajuda.
O erro ta aonde fala q vc nгo й da PolB ou PB, nгo ta funcionando, pra nenhum dos dois.. e nгo sei porque.
O erro ta aonde fala q vc nгo й da PolB ou PB, nгo ta funcionando, pra nenhum dos dois.. e nгo sei porque.
PHP код:
#define Loop(%0,%1) \
for(new %0 = 0; %0 < %1; %0++)
//Veiculos Orgs
CarroPM[0] = AddStaticVehicleEx(597,-2252.4666,2332.8757,4.5814,90.1560,0,7, NascerCarroTempo); // CarroPM1
CarroPM[1] = AddStaticVehicleEx(597,-2251.9280,2329.8845,4.5820,90.3420,0,7, NascerCarroTempo); // CarroPM2
CarroPM[2] = AddStaticVehicleEx(597,-2252.2329,2326.8892,4.5812,89.6824,0,7, NascerCarroTempo); // CarroPM3
CarroPM[3] = AddStaticVehicleEx(597,-2252.2302,2323.8818,4.5807,89.6202,0,7, NascerCarroTempo); // CarroPM4
CarroPM[4] = AddStaticVehicleEx(597,-2251.6807,2320.9900,4.5820,90.5248,0,7, NascerCarroTempo); // CarroPM5
CarroPM[5] = AddStaticVehicleEx(597,-2271.9968,2321.1790,4.5891,270.3652,0,7, NascerCarroTempo); // CarroPM6
CarroPM[6] = AddStaticVehicleEx(597,-2272.2727,2324.2910,4.5879,269.8778,0,7, NascerCarroTempo); // CarroPM7
CarroPM[7] = AddStaticVehicleEx(597,-2271.9402,2327.2502,4.5871,269.8027,0,7, NascerCarroTempo); // CarroPM8
CarroPM[8] = AddStaticVehicleEx(597,-2271.8389,2330.2458,4.5875,270.1216,0,7, NascerCarroTempo); // CarroPM9
CarroPM[9] = AddStaticVehicleEx(597,-2271.9722,2333.2620,4.5835,269.1062,0,7, NascerCarroTempo); // CarroPM10
CarroPM[10] = AddStaticVehicleEx(468,-2251.6567,2285.1121,4.4887,87.9455,7,7, NascerCarroTempo); // MotoPM1
CarroPM[11] = AddStaticVehicleEx(468,-2252.8774,2288.4597,4.4886,88.1298,7,7, NascerCarroTempo); // MotoPM2
CarroPM[12] = AddStaticVehicleEx(468,-2252.5510,2291.0303,4.4842,88.8027,7,7, NascerCarroTempo); // MotoPM3
CarroPM[13] = AddStaticVehicleEx(468,-2251.3691,2293.9175,4.4805,87.2613,7,7, NascerCarroTempo); // MotoPM4
CarroPM[14] = AddStaticVehicleEx(468,-2251.0215,2296.8616,4.4793,90.3782,7,7, NascerCarroTempo); // MotoPM5
CarroPM[15] = AddStaticVehicleEx(427,-2271.6873,2315.3149,4.9522,269.7491,0,7, NascerCarroTempo); // CaminhгoPM1
CarroPM[16] = AddStaticVehicleEx(427,-2271.7156,2309.2351,4.9520,270.0054,0,7, NascerCarroTempo); // CaminhгoPM2
CarroPM[17] = AddStaticVehicleEx(497,-2227.7693,2325.3662,7.7207,0.5153,0,7, NascerCarroTempo); // HeliPM1
CarroPM[18] = AddStaticVehicleEx(493,-2247.6482,2414.3071,0.0690,315.4762,0,7, NascerCarroTempo); // LanchaPM1
CarroPM[19] = AddStaticVehicleEx(493,-2227.6455,2434.6389,-0.2582,313.9869,0,7, NascerCarroTempo); // LanchaPM2
CarroPM[20] = AddStaticVehicleEx(595,-2219.0159,2424.7290,0.1478,314.9353,0,7, NascerCarroTempo); // MiniLanchaPM1
CarroPM[21] = AddStaticVehicleEx(595,-2236.9045,2406.4497,0.1419,314.7831,0,7, NascerCarroTempo); // MiniLanchaPM2
CarroPref[0] = AddStaticVehicleEx(409,-2482.4934,2243.5146,4.6437,271.1828,0,0, NascerCarroTempo); // CarroPref1
CarroPref[1] = AddStaticVehicleEx(409,-2443.7354,2243.3630,4.6093,90.1548,0,0, NascerCarroTempo); // CarroPref2
CarroPref[2] = AddStaticVehicleEx(579,-2476.6338,2224.3071,4.7752,359.3933,0,0, NascerCarroTempo); // CarroPref3
CarroPref[3] = AddStaticVehicleEx(427,-2482.6763,2224.8381,4.9739,359.1125,0,0, NascerCarroTempo); // CarroPref4
CarroPref[4] = AddStaticVehicleEx(522,-2441.0715,2224.8872,4.4168,358.3338,0,0, NascerCarroTempo); // MotoPref1
CarroPref[5] = AddStaticVehicleEx(487,-2463.7610,2219.1628,5.1611,1.0049,0,0, NascerCarroTempo); // HeliPref1
CarroPref[6] = AddStaticVehicleEx(493,-2451.1794,2202.6990,0.0401,179.1265,0,0, NascerCarroTempo); // LanchaPref1
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
format(stryng, sizeof(stryng), "~g~%s", VeiculosNome[GetVehicleModel(vehicleid)-400]);
GameTextForPlayer(playerid, stryng, 5000, 1);
if(newstate == PLAYER_STATE_DRIVER) {
TextDrawShowForPlayer(playerid, Velocimetro[playerid][0]);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][1]);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][2]);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][3]);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][4]);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][5]);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][6]);
VelocimetroTimer[playerid] = SetTimerEx("AtualizarVelocimetro", 100, true, "i", playerid);
PararVeloTimer[playerid] = SetTimerEx("PararVelocimetro", 1000, true, "i", playerid);
TextDrawHideForPlayer(playerid, Velocimetro[playerid][2]);
format(stryng, sizeof(stryng), "Veiculo: ~r~%s", VeiculosNome[GetVehicleModel(vehicleid)-400]);
TextDrawSetString(Velocimetro[playerid][2], stryng);
TextDrawShowForPlayer(playerid, Velocimetro[playerid][2]);
Loop(vid, 23) {
if(IsPlayerInVehicle(playerid, CarroPM[vid]) && DylanInfo[playerid][dOrg] != 2) {
SendClientMessage(playerid, Vermelho_Claro, "[Orgs]{63C8E4}Vocк nгo й da PolB(Policia de Bayside)");
RemovePlayerFromVehicle(playerid);
return true;
}
else if(IsPlayerInVehicle(playerid, CarroPM[vid]) && DylanInfo[playerid][dOrg] == 2) {
SendClientMessage(playerid, Vermelho_Claro, "[PC de bordo]{63C8E4}Bem vindo ao carro PolB(Policia de Bayside)");
SendClientMessage(playerid, Vermelho_Claro, "[PC de bordo]{63C8E4}Para ver seus comandos no carro digite:");
SendClientMessage(playerid, Vermelho_Claro, "[PC de bordo]{63C8E4}/pcbordo , Dirija com cuidado!");
return true;
}
}
Loop(vid, 8) {
if(IsPlayerInVehicle(playerid, CarroPref[vid]) && DylanInfo[playerid][dOrg] != 1) {
SendClientMessage(playerid, Vermelho_Claro, "[Orgs]{C0C0C0}Vocк nгo й da PB(Prefeitura de Bayside)");
RemovePlayerFromVehicle(playerid);
return true;
}
}
return true;
}
return true;
}