Poste o cуdigo...
Код:
if(PlayerInfo[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLider] == 8 || PlayerInfo[killerid][pMembro] == 8)
{
if(GoChase[killerid] == playerid)
{
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValue]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк foi morto pelo hitman %s por R$%d por isso nao foi DM");
format(string,128,"<< Assassino %s cumpriu o contrato em %s e ganhou R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
SendFamilyMessage(13, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
PlayerInfo[hitid][pMask] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
if(strcmp(cmd,"/laptop",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
if(ConnectedToPC[playerid] == 255)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк deve ter desligado e se desconectado da agencia.");
ConnectedToPC[playerid] = 0;
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce ligou seu laptop e se conectou a Agencia.");
SendClientMessage(playerid, COLOR_WHITE, "|___ Agencia dos Hitmans___|");
SendClientMessage(playerid, COLOR_YELLOW2, "|");
SendClientMessage(playerid, COLOR_YELLOW2, "| - News");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Contratos");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Armas");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Pacotes");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Cargos");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Desligar");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Entregarcont");
SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
ConnectedToPC[playerid] = 255;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um membro da Agкncia Hitman !");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/contrato", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID do Jogador] [Quantidade]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID do Jogador] [Quantidade]");
return 1;
}
moneys = strval(tmp);
if(moneys < 10000 || moneys > 500000) { SendClientMessage(playerid, COLOR_GREY, " Seu contrato nгo pode ser menor que 10000 e maior que 500000"); return 1; }
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "Level 2 no Minimo para por um Contrato.");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pMembro] == 8 && PlayerInfo[playerid][pMembro] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Nгo pode por contrato e sua propria agencia!");
return 1;
}
else if(PlayerInfo[giveplayerid][pLider] == 8 && PlayerInfo[playerid][pMembro] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Nгo pode por contratos em sua propria agencia!");
return 1;
}
else if(PlayerInfo[giveplayerid][pMembro] == 8||PlayerInfo[giveplayerid][pLider] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Nгo pode contratar um assassino !");
return 1;
}
if(gTeam[giveplayerid] == 2 && moneys != 300000)
{
SendClientMessage(playerid, COLOR_GREY, " Somente 300000 Pode ser posto em contratos com os COPS !");
return 1;
}
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode se contratar!"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playerdinheiro = GetPlayerMoneyEx(playerid);
if (moneys > 0 && playerdinheiro >= moneys)
{
GivePlayerMoneyEx(playerid, (0 - moneys));
PlayerInfo[giveplayerid][pHeadValue]+=moneys;
format(string, sizeof(string), "%s Botou um contrato em %s, por R$%d.",sendername, giveplayer, moneys);
SendFamilyMessage(8, COLOR_YELLOW, string);
format(string, sizeof(string), "* Vocк botou um contrato em %s, por R$%d.",giveplayer, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nъmero Invalido.");
}
}
}
else
{
format(string, sizeof(string), " %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
return 1;
}
if(ConnectedToPC[playerid] == 255)
{
new idx;
tmp = strtok(text, idx);
if ((strcmp("Contratos", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Contratos")))
{
if(PlayerInfo[playerid][pCargo] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Apenas cargo 1 pode ler os contratos !");
return 0;
}
SearchingHit(playerid);
return 0;
}
else if ((strcmp("News", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("News")))
{
new x_nr[256];
x_nr = strtok(text, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
SendClientMessage(playerid, COLOR_WHITE, "USE: News [number] ou News delete [number] ou News delete all");
format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]);
SendClientMessage(playerid, COLOR_GREY, string);
SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
return 0;
}//lets start
if(strcmp(x_nr,"1",true) == 0)
{
if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
if(News[hTaken1] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
News[hTaken1] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spot 1 is already Taken !");
return 0;
}
}
else if(strcmp(x_nr,"2",true) == 0)
{
if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
if(News[hTaken2] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
News[hTaken2] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spot 2 is already Taken !");
return 0;
}
}
else if(strcmp(x_nr,"3",true) == 0)
{
if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
if(News[hTaken3] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
News[hTaken3] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spot 3 is already Taken !");
return 0;
}
}
else if(strcmp(x_nr,"4",true) == 0)
{
if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
if(News[hTaken4] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
News[hTaken4] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spot 4 is already Taken !");
return 0;
}
}
else if(strcmp(x_nr,"5",true) == 0)
{
if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
if(News[hTaken5] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
News[hTaken5] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spot 5 is already Taken !");
return 0;
}
}
else if(strcmp(x_nr,"delete",true) == 0)
{
if(PlayerInfo[playerid][pCargo] < 4)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa de cargo 4 parar delatr as chamadas !");
return 0;
}
new string1[MAX_PLAYER_NAME];
new x_tel[256];
x_tel = strtok(text, idx);
if(!strlen(x_tel)) {
SendClientMessage(playerid, COLOR_WHITE, "USE: News delete [number] ou News delete all.");
return 0;
}
if(strcmp(x_tel,"1",true) == 0)
{
format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
News[hTaken1] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (1) from the Hitman Agency's News Channel.");
return 0;
}
else if(strcmp(x_tel,"2",true) == 0)
{
format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
News[hTaken2] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (2) from the Hitman Agency's News Channel.");
return 0;
}
else if(strcmp(x_tel,"3",true) == 0)
{
format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
News[hTaken3] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (3) from the Hitman Agency's News Channel.");
return 0;
}
else if(strcmp(x_tel,"4",true) == 0)
{
format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
News[hTaken4] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (4) from the Hitman Agency's News Channel.");
return 0;
}
else if(strcmp(x_tel,"5",true) == 0)
{
format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
News[hTaken5] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (5) from the Hitman Agency's News Channel.");
return 0;
}
else if(strcmp(x_tel,"all",true) == 0)
{
format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
News[hTaken1] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
News[hTaken2] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
News[hTaken3] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
News[hTaken4] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
News[hTaken5] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce deletou todas as mensagens de novidades dos Hitmans.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USE: News delete [number] ou News delete all.");
return 0;
}
}
else { return 0; }
}
//Entregar contrato
else if ((strcmp("entregarcont", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("entregarcont")))
{
if(PlayerInfo[playerid][pCargo] < 2)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa Cargo 4 para dar os contratos para os Assassinos!");
return 0;
}
if(hitfound == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nenhum contrato lido ainda, use: contratos!");
return 0;
}
tmp = strtok(text, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USO: entregarcont [ID do jogador]");
return 0;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pMembro] == 8 && PlayerInfo[giveplayerid][pLider] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Isso nгo й um jogador Assassino!");
return 0;
}
if(GoChase[giveplayerid] < 999)
{
SendClientMessage(playerid, COLOR_GREY, " Assassino que jб estб ocupado com um Contrato!");
return 0;
}
if(IsPlayerConnected(hitid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giver, sizeof(giver));
GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
//format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for R$%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
//SendClientMessage(playerid, COLOR_YELLOW, string);
//format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for R$%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
//SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "* Assassino %s, entregou contrato para %s matar: %s(ID:%d), por R$%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
GoChase[giveplayerid] = hitid;
GetChased[hitid] = giveplayerid;
GotHit[hitid] = 1;
PlayerInfo[hitid][pMask] = 1;
hitid = 0;
hitfound = 0;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Os contratos estгo offline !");
return 0;
}
}
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Assassino Offline ou nгo й assassino !");
return 0;
}
}
else if ((strcmp("Cargos", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks")))
{
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Cargos __________________|");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMembro] == 8||PlayerInfo[i][pLider] == 8)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* %s: Cargo %d", giveplayer,PlayerInfo[i][pCargo]);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
else if ((strcmp("Pacotes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Pacotes")))
{
if(OrderReady[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк ja encomendou seu pacotes, va na agencia e pegue ele !");
return 0;
}
tmp = strtok(text, idx);
if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
{
if(PlayerInfo[playerid][pCargo] < 1) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 1499)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$1500), Agora va na Agencia buscar.");
OrderReady[playerid] = 1;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Vocк nao pode comprar este pacote !");
return 0;
}
}
else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
{
if(PlayerInfo[playerid][pCargo] < 2) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 1999)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$2000), Agora va na Agencia buscar.");
OrderReady[playerid] = 2;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Vocк nгo pode comprar este pacote !");
return 0;
}
}
else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
{
if(PlayerInfo[playerid][pCargo] < 2) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 2499)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$2500), Agora va na Agencia buscar.");
OrderReady[playerid] = 3;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
return 0;
}
}
else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
{
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 2999)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк encomendou um pacote de (R$3000), Agora va na Agencia buscar.");
OrderReady[playerid] = 4;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Vocк nгo pode comprar este pacote !");
return 0;
}
}
else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
{
if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 3999)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк encomendou um pacote de (R$4000), Agora va na Agencia buscarr.");
OrderReady[playerid] = 5;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Vocк nгo pode comprar este pacote !");
return 0;
}
}
else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
{
if(PlayerInfo[playerid][pCargo] < 4) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 4999)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк encomendou um pacote de (R$5000), Agora va na Agencia buscar.");
OrderReady[playerid] = 6;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Vocк nгo pode comprar este pacote !");
return 0;
}
}
else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
{
if(PlayerInfo[playerid][pCargo] < 4) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
if(GetPlayerMoneyEx(playerid) > 4999)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк encomendou um pacote de (R$5000), Agora va na Agencia buscar.");
OrderReady[playerid] = 7;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY," Vocк nгo pode comprar este pacote !");
return 0;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Available Packages __________________|");
if(PlayerInfo[playerid][pCargo] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) (R$1500 ) Pacote 1 - 4: Desert, Mp5, Rifle e Faca"); }
if(PlayerInfo[playerid][pCargo] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) (R$2000 ) Pacote 2 - 4: Desert, Mp5, Sniper, Faca"); }
if(PlayerInfo[playerid][pCargo] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) (R$2500 ) Pacote 3 - 4: Desert, Mp5, Rifle, Ak47, Faca"); }
if(PlayerInfo[playerid][pCargo] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) (R$3000) Pacote 4 - 6: Desert, Mp5, Sniper, Colt(m4),Faca,Flor"); }
if(PlayerInfo[playerid][pCargo] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) (R$4000) Pacote 5 - 6: Desert, Mp5, Rifle, Ak47, Faca, Flor"); }
if(PlayerInfo[playerid][pCargo] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) (R$5000) Pacote 6 - 6: Desert, Mp5, Sniper, M4, Faca, Flor"); }
if(PlayerInfo[playerid][pCargo] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) (R$5000) Pacote 7 - 6: Desert, Mp5, Sniper, Ak47, Faca, Flor"); }
SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
return 0;
}
}
else if ((strcmp("Desligar", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Desligar")))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк desligou seu laptop, e se desconectou da agencia.");
ConnectedToPC[playerid] = 0;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "|___ Hitman Agency ___|");
SendClientMessage(playerid, COLOR_YELLOW2, "| - News");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Contratos");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Entregarcont - Membro");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Pegarcont - Lider");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Backup");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Pacotes");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Cargos");
SendClientMessage(playerid, COLOR_YELLOW2, "| - Desligar");
SendClientMessage(playerid, COLOR_YELLOW2, "|");
SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
return 0;
}
return 0;
}
Boa parte ta ai, nao sei ... ;x fui copiando e juntando ai , nao fica assim tudo junto nao