if(strcmp(cmd,"/anuncio",true) == 0 || strcmp(cmd,"/anunciar",true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,VERDE,"Use: /An [Tipo De Anuncio] , Ex:/An 1> Anuncio:V>Armas(Vendo armas)");
SendClientMessage(playerid,COLOR_DBLUE,"__________ ___________Vendas e Compras_________________________");
SendClientMessage(playerid,CINZA6,"|1 V>Armas/Drogas - 100 R$ |2 C>Armas/Drogas - 100 R$");
SendClientMessage(playerid,CINZA, "|3 V>Balinhas - 200 R$ |4 C>Balinhas- 200 R$ ");
SendClientMessage(playerid,CINZA, "|5 V>Sexo - 200 R$ |6 Quero Sexo - 200 R$ ");
SendClientMessage(playerid,CINZA, "|7 V>Carro - 200 R$ |8 C> Carro - 200 R$ ");
SendClientMessage(playerid,COLOR_DBLUE,"__________ ____________Procurar______________________________ __");
SendClientMessage(playerid,CINZA4,"|9 P>Detetive - 200 R$ |10 P>Advogado - 200 R$");
SendClientMessage(playerid,CINZA3,"|11 P>Carro - 200 R$ |12 P>Gang/Org. - 200 R$");
SendClientMessage(playerid,COLOR_DBLUE,"__________ ____________Marcar Presenзa_________________________");
SendClientMessage(playerid,CINZA2,"|13 Taxista Online - 200 R$");
SendClientMessage(playerid,CINZA1,"|14 Mecanico Online - 200 R$");
SendClientMessage(playerid,COLOR_DBLUE,"__________ ____________Ataques_______________________________ __");
SendClientMessage(playerid,CINZA, "|15 [Al'Qaeda] Ataque Terrorista em minutos - 500 R$");
SendClientMessage(playerid,CINZA, "|16 [Hamas] Ataque Terrorista em minutos - 500 R$");
SendClientMessage(playerid,COLOR_DBLUE,"__________ ____________Recrutamento__________________________ __");
SendClientMessage(playerid,CINZA, "|17 Aztec Recruta - 500 R$ |18 Grove Recruta - 500 R$");
SendClientMessage(playerid,CINZA, "|19 Ballas Recruta - 500 R$ |20 Vagos Recruta - 500 R$");
SendClientMessage(playerid,CINZA, "|21 Al'Qaeda Recruta - 500 R$ |22 Hamas Recruta - 500 R$");
SendClientMessage(playerid,CINZA, "|23 Reporter Recruta - 500 R$ |24 Medicos Recruta - 500 R$");
SendClientMessage(playerid,CINZA, "|25 Assassinos Recruta - 500 R$ |26 Mafia Yakuza Recruta - 500 R$");
SendClientMessage(playerid,CINZA, "|27 Mafia LH Recruta - 500 R$ |28 GMOB Recruta - 500 R$");
SendClientMessage(playerid,CINZA, "|29 Drifters Recruta - 500 R$ |30 Os Cobras Recruta - 500 R$");
SendClientMessage(playerid,COLOR_DBLUE,"__________ _____________Divulgaзгo___________________________ ___");
SendClientMessage(playerid,CINZA, "|31 Advogado Online - 500 R$ |32 Contrato - 500 R$");
SendClientMessage(playerid,COLOR_DBLUE,"__________ __________________________________________________ __");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, CINZA, "Vocк deve estar logado!");
}
new stat;
stat = strval(tmp);
new cel = PlayerInfo[playerid][pPnumber];
GetPlayerName(playerid,sendername,sizeof(sendernam e));
SemAn[playerid]++;
if (!adds)
{
format(string,sizeof(string),"Aguarde %d Segundos Para o Proximo Anuncio !", (addtimer/1000));
SendClientMessage(playerid,CINZA2,string);
return 1;
}
if(SemAn[playerid] > 1)
{
SendClientMessage(playerid,CINZA,"Espere alguns segundos para que o /an seje liberado!");
SetTimerEx("NSemAn", 20000, 0, "d", playerid);
return 1;
}
if (PlayerInfo[playerid][pLevel] >= 2)
{
switch (stat)
{
case 1:
{
if(GetPlayerMoneyEx(playerid) < 150)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 150 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 150);
SBizzInfo[7][sbTill] += 150;
ExtortionSBiz(7,150);
GameTextForPlayer(playerid,"~r~-150 R$",5000,5);
format(string,sizeof(string),"Anuncio: V>Armas/Drogas ( Vendo Armas ou Drogas ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 2:
{
if(GetPlayerMoneyEx(playerid) < 150)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 150 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 150);
SBizzInfo[7][sbTill] += 150;
ExtortionSBiz(7,150);
GameTextForPlayer(playerid,"~r~-150 R$",5000,5);
format(string,sizeof(string),"Anuncio: C>Armas/Drogas ( Compro Armas ou Drogas ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 3:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: V>Balinhas ( Vendo Balinhas ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 4:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: C>Balinhas ( Compro Balinhas ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 5:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: V>Sexo( Vendo Sexo ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 6:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: Quero Profissional do sexo( me mande sms ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 7:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: V> Carro ( Vendo Carro ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 8:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: C> Carro ( Compro Carro ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 9:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: P> Detetive ( Procuro Detetive ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 10:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: P> Adv. ( Procuro Advogado ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 11:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: P> Carro ( Procuro Carro ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 12:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: P> Gang/Org ( Procuro Gang/Org. Terrorista ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 13:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: Taxista Online ( /servico Taxi ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 14:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 200 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: Mecanico Online ( /servico Mecanico ),Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 15:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 200);
SBizzInfo[7][sbTill] += 200;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-200 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Al'Qaeda] Ataque Terrorista em minutos,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 16:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Hamas] Ataque Terrorista em minutos,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 17:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Varrios Los Aztec] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 18:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Grove Street] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 19:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Ballas] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 20:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Los Vagos] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 21:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Al'Qaeda] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 22:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Hamas] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 23:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Reporter] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 24:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [SAMU] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 25:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Assassinos] Recruta,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 26:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Mafia Yakuza] Recruta ,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 27:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Mafia LH] Recruta ,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 28:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [GMOB] Recruta ,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 29:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Drifters] Recruta ,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 30:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: [Cobras] Recruta ,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 31:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: Advogado Online ~ Me Ligue se precisar,Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
case 32:
{
if(GetPlayerMoneyEx(playerid) < 200)
{
SendClientMessage(playerid,AZUL3,"Й necessбrio ter 500 R$");
return 1;
}
GivePlayerMoneyEx(playerid,- 500);
SBizzInfo[7][sbTill] += 500;
ExtortionSBiz(7,200);
GameTextForPlayer(playerid,"~r~-500 R$",5000,5);
format(string,sizeof(string),"Anuncio: Quer matar alguйm sem sujar as mгos? /contrato [IDVITIMA] [Preзo],Nome: %s, Celular: %d",sendername,cel);
OOCNews(AN_COLOR,string);
}
}
}
else
{
SendClientMessage(playerid,CINZA,"Й preciso ter no minimo Nivel 2 para anunciar!");
}
}
return 1;
}
|