04.11.2017, 14:37
quando entro na gz pra entregar o matuto no meu GM o GZ Some do nada so volta quando reiniciar o PC
PHP код:
if(dialogid == DIALOG_MATUTO+2)
{
if(response)
{
if(listitem == 0)
{
if(Player[playerid][pFaccao] == 1)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+3,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 2)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+3,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 3)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+3,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 4)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+3,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
}
if(listitem == 1)
{
if(Player[playerid][pFaccao] == 1)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+4,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 2)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+4,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 3)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+4,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 4)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+4,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Dick\nMandela\nComplexo Do Alemao\nMorro do Turano","Selecionar","Voltar");
}
}
}
}
if(dialogid == DIALOG_MATUTO+3)
{
if(response)
{
if(listitem == 0)
{
if(armaFav1 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Morro do Dick.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,386.4135,2360.6821,25.2831,4.0);
entregaarmafav1[playerid] = 1;
ChegadaMTT[playerid] = 1;
}
if(listitem == 1)
{
if(armaFav2 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Mandela.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,1031.6646,2391.8801,10.6719,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav2[playerid] = 1;
}
if(listitem == 2)
{
if(armaFav3 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Complexo Do Alemao.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,-1225.3735,2681.0574,46.4182,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav3[playerid] = 1;
}
if(listitem == 3)
{
if(armaFav4 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Morro do Turano.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,1371.4827,-931.1681,34.1875,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav4[playerid] = 1;
}
}
}
if(dialogid == DIALOG_MATUTO+5)
{
if(response)
{
if(listitem == 0)
{
if(Player[playerid][pFaccao] == 5)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+6,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 6)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+6,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 7)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+6,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 8)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+6,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
}
if(listitem == 1)
{
if(Player[playerid][pFaccao] == 5)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+7,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 6)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+7,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 7)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+7,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 8)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+7,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Morro da Coroa\nMorro do Zinco\nSгo Carlos\nVila Vintйm","Selecionar","Voltar");
}
}
}
}
if(dialogid == DIALOG_MATUTO+6)
{
if(response)
{
if(listitem == 0)
{
if(armaFav5 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Morro da Coroa.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,2599.3472,-1031.0076,70.7703,4.0);
entregaarmafav5[playerid] = 1;
ChegadaMTT[playerid] = 1;
}
if(listitem == 1)
{
if(armaFav6 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Morro do Zinco.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,1866.0863,-1148.7306,23.7252,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav6[playerid] = 1;
}
if(listitem == 2)
{
if(armaFav7 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Sгo Carlos.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,1774.4481,-836.7912,63.3306,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav7[playerid] = 1;
}
if(listitem == 3)
{
if(armaFav8 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Vila Vintйm.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,-194.9635,980.0148,19.0082,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav8[playerid] = 1;
}
}
}
if(dialogid == DIALOG_MATUTO+8)
{
if(response)
{
if(listitem == 0)
{
if(Player[playerid][pFaccao] == 1)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+9,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 2)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+9,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 3)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+9,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 4)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+9,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
}
if(listitem == 1)
{
if(Player[playerid][pFaccao] == 1)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+10,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 2)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+10,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 3)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+10,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 4)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+10,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila do Pinheiro\nVila do Joгo \nCorйia\nVila Alianзa","Selecionar","Voltar");
}
}
}
}
if(dialogid == DIALOG_MATUTO+9)
{
if(response)
{
if(listitem == 0)
{
if(armaFav9 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Vila do Pinheiro.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,2387.4067,2656.1873,12.5638,4.0);
entregaarmafav9[playerid] = 1;
ChegadaMTT[playerid] = 1;
}
if(listitem == 1)
{
if(armaFav10 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Vila do Joгo.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,2027.3040,2627.3005,10.6719,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav10[playerid] = 1;
}
if(listitem == 2)
{
if(armaFav11 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Corйia.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,-10.5363,2063.3875,17.4922,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav11[playerid] = 1;
}
if(listitem == 3)
{
if(armaFav12 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Vila Alianзa.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,-106.8591,1744.8070,20.3584,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav12[playerid] = 1;
}
}
}
if(dialogid == DIALOG_MATUTO+11)
{
if(response)
{
if(listitem == 0)
{
if(Player[playerid][pFaccao] == 13)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+12,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila Carioca\nTrкs pontes\nAзo","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 14)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+12,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila Carioca\nTrкs pontes\nAзo","Selecionar","Voltar");
}
if(Player[playerid][pFaccao] == 15)
{
ShowPlayerDialog(playerid,DIALOG_MATUTO+12,DIALOG_STYLE_LIST,"{6B0C0C}» {FFFFFF}Escolha uma comunidade para fazer entrega:","Vila Carioca\nTrкs pontes\nAзo","Selecionar","Voltar");
}
}
}
}
if(dialogid == DIALOG_MATUTO+12)
{
if(response)
{
if(listitem == 0)
{
if(armaFav13 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Vila Carioca.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,2760.0212,2113.3960,11.9053,4.0);
entregaarmafav13[playerid] = 1;
ChegadaMTT[playerid] = 1;
}
if(listitem == 1)
{
if(armaFav14 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Trкs pontes.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,2742.2744,1690.5968,7.7709,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav14[playerid] = 1;
}
if(listitem == 2)
{
if(armaFav15 == 5000){
SendClientMessage(playerid, COR_ERRO,"Essa favela estб com armazйm cheio!");
Emtregando[playerid] = 0;
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
if(Player[i][pPMRJ] >= 1 || Player[i][pPCRJ] >= 1)
{
new string[128];
format(string,sizeof(string),"» %s estб realizando uma entrega de matuto na comunidade Aзo.",getPName(playerid));
SendClientMessage(i,0x9ACD32FF,string);
}
SetPlayerCheckpoint(playerid,2836.8557,1132.1593,10.8238,4.0);
ChegadaMTT[playerid] = 1;
entregaarmafav15[playerid] = 1;
}
}
}