16.10.2017, 20:56
bom quando o player planeja uma fuga no presidio de 1 minuto ae e concluida os portoes das celas nгo sao abertos eles deveriam ser abertos mas nao sгo e ficam la fechados
comando
public TempoPlanejar(playerid)
{
DestroyObject(portaoCela[0]);
DestroyObject(portaoCela[1]);
DestroyObject(portaoCela[2]);
DestroyObject(portaoCela[3]);
DestroyObject(portaoCela[4]);
DestroyObject(portaoCela[5]);
DestroyObject(portaoCela[6]);
DestroyObject(portaoCela[7]);
DestroyObject(portaoCela[8]);
DestroyObject(portaoCela[9]);
DestroyObject(portaoCela[10]);
DestroyObject(portaoCela[11]);
new string[100];
format(string,sizeof(string),"AVISO: %s liberou todos os presidiбrios! Recebeu: R$200.000",getPName(playerid));
SendClientMessageToAll(0x32CD32AA ,string);
GivePlayerMoney(playerid, 200000);
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 5);
Player[playerid][pProcurado] += 5;
Cifraocadeia[playerid] = 0;
new city[64] = "Nгo identificado";
switch(GetPlayerCity(playerid))
{
case CITY_LS: city = "Los Santos";
case CITY_SF: city = "San Fierro";
case CITY_LV: city = "Las Venturas";
}
format(string,sizeof(string),"HQ{FFFFFF}: Chamando Todas As Ъnidades, Denъncia de {4876FF}Penitenciaria.");
SendMessageToCops(0xFF0000AA, string);
format(string,sizeof(string),"HQ{FFFFFF}: Crime: Planejou a Fuga | Suspeito: %s | Local: %s !", getPName(playerid), city);
SendMessageToCops(0xFF0000AA, string);
SalvarPlayer(playerid);
SetTimerEx("TempoCelas", 10000*TempoCelas1,false,"d", playerid);
}
//-------------------------------------------------------------------------------------------------------------------
public TempoCelas(playerid)
{
portaoCela[0] = CreateObject(971, 822.099976, -2594.310059, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[1] = CreateObject(971, 859.340027, -2594.090088, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[2] = CreateObject(971, 822.122009, -2603.011230, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[3] = CreateObject(971, 814.580017, -2602.820068, 18.360001, 0.000000, 0.000000, 90.000000);
portaoCela[4] = CreateObject(971, 859.349976, -2620.209961, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[5] = CreateObject(971, 859.330017, -2628.929932, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[6] = CreateObject(971, 822.090027, -2620.850098, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[7] = CreateObject(971, 815.190002, -2629.129883, 18.360001, 0.000000, 0.000000, 90.000000);
portaoCela[8] = CreateObject(971, 822.099976, -2629.520020, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[9] = CreateObject(971, 822.099976, -2594.310059, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[10] = CreateObject(971, 814.359985, -2594.360107, 18.360001, 0.000000, 0.000000, 90.000000);
portaoCela[11] = CreateObject(971, 859.340027, -2602.810059, 19.820000, 0.000000, 0.000000, -90.000000);
}
comando
public TempoPlanejar(playerid)
{
DestroyObject(portaoCela[0]);
DestroyObject(portaoCela[1]);
DestroyObject(portaoCela[2]);
DestroyObject(portaoCela[3]);
DestroyObject(portaoCela[4]);
DestroyObject(portaoCela[5]);
DestroyObject(portaoCela[6]);
DestroyObject(portaoCela[7]);
DestroyObject(portaoCela[8]);
DestroyObject(portaoCela[9]);
DestroyObject(portaoCela[10]);
DestroyObject(portaoCela[11]);
new string[100];
format(string,sizeof(string),"AVISO: %s liberou todos os presidiбrios! Recebeu: R$200.000",getPName(playerid));
SendClientMessageToAll(0x32CD32AA ,string);
GivePlayerMoney(playerid, 200000);
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 5);
Player[playerid][pProcurado] += 5;
Cifraocadeia[playerid] = 0;
new city[64] = "Nгo identificado";
switch(GetPlayerCity(playerid))
{
case CITY_LS: city = "Los Santos";
case CITY_SF: city = "San Fierro";
case CITY_LV: city = "Las Venturas";
}
format(string,sizeof(string),"HQ{FFFFFF}: Chamando Todas As Ъnidades, Denъncia de {4876FF}Penitenciaria.");
SendMessageToCops(0xFF0000AA, string);
format(string,sizeof(string),"HQ{FFFFFF}: Crime: Planejou a Fuga | Suspeito: %s | Local: %s !", getPName(playerid), city);
SendMessageToCops(0xFF0000AA, string);
SalvarPlayer(playerid);
SetTimerEx("TempoCelas", 10000*TempoCelas1,false,"d", playerid);
}
//-------------------------------------------------------------------------------------------------------------------
public TempoCelas(playerid)
{
portaoCela[0] = CreateObject(971, 822.099976, -2594.310059, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[1] = CreateObject(971, 859.340027, -2594.090088, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[2] = CreateObject(971, 822.122009, -2603.011230, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[3] = CreateObject(971, 814.580017, -2602.820068, 18.360001, 0.000000, 0.000000, 90.000000);
portaoCela[4] = CreateObject(971, 859.349976, -2620.209961, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[5] = CreateObject(971, 859.330017, -2628.929932, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[6] = CreateObject(971, 822.090027, -2620.850098, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[7] = CreateObject(971, 815.190002, -2629.129883, 18.360001, 0.000000, 0.000000, 90.000000);
portaoCela[8] = CreateObject(971, 822.099976, -2629.520020, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[9] = CreateObject(971, 822.099976, -2594.310059, 19.820000, 0.000000, 0.000000, -90.000000);
portaoCela[10] = CreateObject(971, 814.359985, -2594.360107, 18.360001, 0.000000, 0.000000, 90.000000);
portaoCela[11] = CreateObject(971, 859.340027, -2602.810059, 19.820000, 0.000000, 0.000000, -90.000000);
}