Sistema de Televisão v2.0 ( Único )
Autor: Jonathan Feitosa | Publicado: 2011-09-16T14:34:00-07:00


Bom, Eu Não Melhorei Muita Coisa Nessa Versão, Retirei Completamente Os Bugs do Sistema de Trancar/Destrançar é Audiência. Criei uns Comandos é 2 TextDraw. Confira Abaixo

Sistema de Televisão v2.0 ( Único )
Por: Jonathan Feitosa

Informação :


/filmarbalada&nbsp;- Começa a Balada. ( Administrador Logado Na Rcon )
/filmarjornal&nbsp;- Começa o Jornal. ( Administrador Logado Na Rcon )
/trancar&nbsp;- Interior Para Não Entrarem. ( Administrador Logado Na Rcon )
/destrancar&nbsp;- Interior. ( Administrador Logado Na Rcon )
/levantar&nbsp;- Levanta "Ao Sentar". ( Administrador Logado Na Rcon )
/sentar&nbsp;- Senta. ( Administrador Logado Na Rcon )
/irla&nbsp;- Ir Até o Local. ( Administrador Logado Na Rcon )
/terminar&nbsp;- Termina o Jornal. ( Administrador Logado Na Rcon )
/audiencia&nbsp;Quantos Assistindo. ( Administrador Logado Na Rcon )
/assistirbalada&nbsp;- Assistir a Balada. ( Comum )
/assistirjornal&nbsp;- Assistir o Jornal. ( Comum )
/desligartv&nbsp;- Desliga a TV. ( Comum )
/telespectadores&nbsp;- Ver Quem Está Assistindo. ( Comum )
/comandostv&nbsp;- Ver os Comandos do Sistema de TV. ( Comum )
/creditostv&nbsp;- Ver os Créditos do Sistema de TV. ( Comum )

Como Funciona ?


Simples, é um Sistema de Televisão Simples, Você o Dono do Servidor Cria Seu Jornal, é Divirta-se Zuando Com Ele. Podendo Editar a Vontade, Sem Editar Os Créditos.


Funções Para Não Da Erro é Pequenas Informações


Para Não Da Bug Use a Função :
pawn Code:DisableInteriorEnterExits();
Porque Usar Ele ? Para Desativar Os Interiores, Para Não Entrar por "Outra Porta"

- 8 Objetos
- Pickups
- 2 3DTextLabel.
- 2 TextDraw.

Onde Se Localiza ?

Use /irla Para Chegar Mais Rápido.




Imagens&nbsp;

Assistindo Jornal
Interior Jornal
Assistindo Balada
Interior Balada




TextDraw's

Créditos :

Jonathan Feitosa = FS Completo

Download

Download 4shared
pawn Code:#include 
enum pInfo
{
&nbsp; Jornal,
&nbsp; Balada
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new Nome[MAX_PLAYER_NAME];
new Calado[MAX_PLAYER_NAME];
new Audiencia;
new DuasVezesNao[MAX_PLAYERS];
new Trancado;
new Urgente[MAX_PLAYERS];
new string[128];
new AudienciaLOL[100];
new Text:Textdraw0, Text:Textdraw1;
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
&nbsp; &nbsp; SetTimer("AtualizarAudiencia", 1000,true);
&nbsp; &nbsp; Textdraw0 = TextDrawCreate(546.000000, 107.000000, "Audiencia:\n");
&nbsp; &nbsp; TextDrawAlignment(Textdraw0, 2);
&nbsp; &nbsp; TextDrawBackgroundColor(Textdraw0, 255);
&nbsp; &nbsp; TextDrawFont(Textdraw0, 1);
&nbsp; &nbsp; TextDrawLetterSize(Textdraw0, 0.400000, 1.799999);
&nbsp; &nbsp; TextDrawColor(Textdraw0, 65535);
&nbsp; &nbsp; TextDrawSetOutline(Textdraw0, 1);
&nbsp; &nbsp; TextDrawSetProportional(Textdraw0, 1);
&nbsp; &nbsp; TextDrawSetShadow(Textdraw0, 1);

&nbsp; &nbsp; Textdraw1 = TextDrawCreate(476.000000, 127.000000, "Rede Globo JFS");
&nbsp; &nbsp; TextDrawBackgroundColor(Textdraw1, 255);
&nbsp; &nbsp; TextDrawFont(Textdraw1, 2);
&nbsp; &nbsp; TextDrawLetterSize(Textdraw1, 0.450000, 1.800000);
&nbsp; &nbsp; TextDrawColor(Textdraw1, -65281);
&nbsp; &nbsp; TextDrawSetOutline(Textdraw1, 0);
&nbsp; &nbsp; TextDrawSetProportional(Textdraw1, 1);
&nbsp; &nbsp; TextDrawSetShadow(Textdraw1, 1);

&nbsp; &nbsp; Create3DTextLabel("Televisão\nBalada", 0xF68E00F6, 647.8179,-1353.9329,13.5477,60.0,0);
&nbsp; &nbsp; Create3DTextLabel("Televisão\nJornal", 0xF68E00F6, 648.0414,-1360.7756,13.5901,60.0,0);
&nbsp; &nbsp; AddStaticPickup(1318, 23, 648.0414,-1360.7756,13.5901); // Jornal Entrada
&nbsp; &nbsp; AddStaticPickup(1318, 1, 965.0610,-53.1662,1001.1246); // Jornal Saida
&nbsp; &nbsp; AddStaticPickup(1318, 23, 647.8179,-1353.9329,13.5477); // Balada Entrada
&nbsp; &nbsp; AddStaticPickup(1318, 1, -2634.9578,1409.8467,906.4609); // Balada Saida
&nbsp;// =================================== Jornal ==============================
&nbsp; &nbsp; CreateObject(18654,957.96453857,-55.19634628,1000.11718750,0.00000000,0.00000000,138.00000000); //object(mansion-light05) (1)
&nbsp; &nbsp; CreateObject(18648,963.55859375,-57.58300781,1000.14801025,0.00000000,0.00000000,0.00000000); //object(flower-bush08) (1)
&nbsp; &nbsp; CreateObject(18648,963.56066895,-58.55468750,1000.14801025,0.00000000,0.00000000,0.00000000); //object(flower-bush08) (2)
&nbsp; &nbsp; CreateObject(18648,964.47753906,-60.58984375,1000.28308105,0.00000000,0.00000000,0.00000000); //object(flower-bush08) (3)
&nbsp; &nbsp; CreateObject(18648,964.67382812,-55.56250000,1000.14062500,0.00000000,0.00000000,0.00000000); //object(flower-bush08) (4)
&nbsp; &nbsp; CreateObject(2853,960.08325195,-57.26187134,1000.93243408,0.00000000,0.00000000,0.00000000); //object(gb_bedmags03) (1)
&nbsp; &nbsp; CreateObject(2634,968.30175781,-53.22460938,1001.26879883,0.00000000,0.00000000,87.99499512); //object(ab_vaultdoor) (1)
&nbsp; &nbsp; CreateObject(2634,968.52429199,-53.23706055,1002.40686035,0.00000000,0.00000000,269.99499512); //object(ab_vaultdoor) (2)
&nbsp; &nbsp; return true;
}

public OnFilterScriptExit()
{
&nbsp; &nbsp; TextDrawHideForAll(Textdraw0);
&nbsp; &nbsp; TextDrawDestroy(Textdraw0);
&nbsp; &nbsp; TextDrawHideForAll(Textdraw1);
&nbsp; &nbsp; TextDrawDestroy(Textdraw1);
&nbsp; &nbsp; for(new i = 0; i &lt; MAX_PLAYERS; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; Audiencia --;
&nbsp; &nbsp; &nbsp; &nbsp; PlayerInfo[pInfo][Jornal] = 0;
&nbsp; &nbsp; }
&nbsp; &nbsp; return true;
}
#else
main()
{
&nbsp; &nbsp; print("\n----------------------------------");
&nbsp; &nbsp; print(" Sistema de Televisão By: Jonathan Feitosa");
&nbsp; &nbsp; print("----------------------------------\n");
}
#endif

public OnGameModeInit()
{
&nbsp; &nbsp; return 1;
}

public OnGameModeExit()
{
&nbsp; &nbsp; return 1;
}

public OnPlayerConnect(playerid)
{
&nbsp; &nbsp; return true;
}

public OnPlayerDisconnect(playerid, reason)
{
&nbsp; &nbsp; if(Audiencia == 1)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; Audiencia --;
&nbsp; &nbsp; }
&nbsp; &nbsp; return true;
}
public OnPlayerText(playerid, text[])
{
&nbsp; &nbsp; if(Calado[playerid] == 1)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, 0xFF0000FF, "Você Não Pode Falar.");
&nbsp; &nbsp; &nbsp; &nbsp; return false;
&nbsp; &nbsp; }
&nbsp; &nbsp; return true;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
&nbsp; &nbsp; if (strcmp("/levantar", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; ApplyAnimation(playerid,"Attractors","Stepsit_out",4.1,0,1,1,1,1);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/sentar", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/irla", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerPos(playerid, 644.8199,-1354.1106,13.5530);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerInterior(playerid, 0);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/trancar", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"Já Está Trancado !");
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, -1, "As Portas Foram Trancadas.");
&nbsp; &nbsp; &nbsp; &nbsp; Trancado = 1;
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/destrancar", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; if(Trancado &lt; 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Não Está Trancada !");
&nbsp; &nbsp; &nbsp; &nbsp; Trancado = 0;
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, -1, "As Portas Foram Destrancadas.");
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if(strcmp("/filmarjornal", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Jornal] == 1) return SendClientMessage(playerid,0xFF0000FF," Já Tem Uma Programação Em Andamento !");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Balada] == 1) return SendClientMessage(playerid,0xFF0000FF," Já Tem Uma Programação Em Andamento !");
&nbsp; &nbsp; &nbsp; &nbsp; GetPlayerName(playerid, Nome, sizeof(Nome));
&nbsp; &nbsp; &nbsp; &nbsp; format(string, sizeof(string), "ATENÇÃO: Daqui a 1 Minuto Está Começando o Programa de TV de {2641FE}%s - Jornal AoVivo!", Nome);
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessageToAll(0xFF0000FF,string);
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0xFF0000FF,"&gt; Você Ligou a Câmera de Jornal, Aguarde 1 Minuto Para Entrar no Ar.");
&nbsp; &nbsp; &nbsp; &nbsp; SetTimerEx("EntrandoNoArJornal", 5000, false, "i", playerid); /* LEMBRAR */
&nbsp; &nbsp; &nbsp; &nbsp; for(new i = 0; i &lt; MAX_PLAYERS; i++)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PlayerInfo[i][Jornal] = 1;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if(strcmp("/filmarbalada", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Jornal] == 1) return SendClientMessage(playerid,0xFF0000FF," Já Tem Uma Programação Em Andamento !");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Balada] == 1) return SendClientMessage(playerid,0xFF0000FF," Já Tem Uma Programação Em Andamento !");
&nbsp; &nbsp; &nbsp; &nbsp; GetPlayerName(playerid, Nome, sizeof(Nome));
&nbsp; &nbsp; &nbsp; &nbsp; format(string, sizeof(string), "ATENÇÃO: Daqui a 1 Minuto Está Começando o Programa de TV de {2641FE}%s - Balada AoVivo!", Nome);
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessageToAll(0xFF0000FF,string);
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0xFF0000FF,"&gt; Você Ligou a Câmera de Balada, Aguarde 1 Minuto Para Entrar no Ar.");
&nbsp; &nbsp; &nbsp; &nbsp; SetTimerEx("EntrandoNoArBalada", 5000, false, "i", playerid); /* LEMBRAR */
&nbsp; &nbsp; &nbsp; &nbsp; for(new i = 0; i &lt; MAX_PLAYERS; i++)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PlayerInfo[i][Balada] = 1;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/terminar", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Jornal] == 1 || PlayerInfo[pInfo][Balada] == 1)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GetPlayerName(playerid, Nome, sizeof(Nome));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format(string, sizeof(string), "{2641FE}ATENÇÃO:{FF0000} O Programa de TV {2641FE}%s{FF0000} Chegou Ao Final - Obrigado Por Assistir.", Nome);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessageToAll(0xFF0000FF,string);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextDrawHideForAll(Textdraw0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextDrawHideForAll(Textdraw1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(new i = 0; i &lt; MAX_PLAYERS; i++)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PlayerInfo[i][Jornal] = 0;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PlayerInfo[i][Balada] = 0;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(Urgente[i] &gt;= 1)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Urgente[i] --;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Desligar(i);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if(strcmp("/comandostv", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; new tv[300];
&nbsp; &nbsp; &nbsp; &nbsp; strcat(tv,"{FF0000}Para Administradores Logado Na Rcon : \n");
&nbsp; &nbsp; &nbsp; &nbsp; strcat(tv,"{2641FE}/filmarbalada /filmarjornal /trancar /destrancar /levantar \n");
&nbsp; &nbsp; &nbsp; &nbsp; strcat(tv,"{2641FE}/terminar /sentar /irla /audiencia\n\n");
&nbsp; &nbsp; &nbsp; &nbsp; strcat(tv,"{FF0000}Comandos Normais :\n");
&nbsp; &nbsp; &nbsp; &nbsp; strcat(tv,"{2641FE}/assistirjornal /assistirbalada /desligartv /telespectadores /creditostv\n\n");
&nbsp; &nbsp; &nbsp; &nbsp; strcat(tv,"{FF0000}&gt;&gt; Tecnologia: Jonathan Feitosa &lt;&lt; \n");
&nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, 4532, DIALOG_STYLE_MSGBOX, "Sistema de TV - Jonathan Feitosa",tv, "Fechar", "");
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if(strcmp("/creditostv", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; new CreditosTV[50];
&nbsp; &nbsp; &nbsp; &nbsp; strcat(CreditosTV,"{FF0000}Criado Por: Jonathan Feitosa \n");
&nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, 4532, DIALOG_STYLE_MSGBOX, "Créditos Sistema de Televisão",CreditosTV, "Fechar", "");
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/assistirjornal", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Jornal] == 0) return SendClientMessage(playerid,0xFF0000FF," Nenhuma Programação Em Andamento... !");
&nbsp; &nbsp; &nbsp; &nbsp; if(DuasVezesNao[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF," Você Já Está Assintindo TV !");
&nbsp; &nbsp; &nbsp; &nbsp; Audiencia ++;
&nbsp; &nbsp; &nbsp; &nbsp; Calado[playerid] ++;
&nbsp; &nbsp; &nbsp; &nbsp; DuasVezesNao[playerid] = 1;
&nbsp; &nbsp; &nbsp; &nbsp; PlayerInfo[pInfo][Jornal] = 1;
&nbsp; &nbsp; &nbsp; &nbsp; AssistirJornal(playerid);
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0xFF0000FF,"Você Foi Calado, Escute o Jornal, Para Sair Use {2641FE}/desligartv !");
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/assistirbalada", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Balada] == 0) return SendClientMessage(playerid,0xFF0000FF," Nenhuma Programação de Balada Em Andamento... ! !");
&nbsp; &nbsp; &nbsp; &nbsp; if(DuasVezesNao[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF," Você Já Está Assintindo TV !");
&nbsp; &nbsp; &nbsp; &nbsp; Audiencia ++;
&nbsp; &nbsp; &nbsp; &nbsp; Calado[playerid] ++;
&nbsp; &nbsp; &nbsp; &nbsp; PlayerInfo[pInfo][Balada] = 1;
&nbsp; &nbsp; &nbsp; &nbsp; DuasVezesNao[playerid] = 1;
&nbsp; &nbsp; &nbsp; &nbsp; AssistirBalada(playerid);
&nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0xFF0000FF,"Você Foi Calado, Curta é Escute a Balada, Para Sair Use {2641FE}/desligartv !");
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/desligartv", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(DuasVezesNao[playerid] &lt; 1) return SendClientMessage(playerid,0x2641FEAA,"Você Não Está Assistindo TV.");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Jornal] == 1)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Desligar(playerid);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0x2641FEAA,"Você Desligou a TV Jornal.");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextDrawHideForPlayer(playerid, Textdraw0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextDrawHideForPlayer(playerid, Textdraw1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Balada] == 1)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Desligar(playerid);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0x2641FEAA,"Você Desligou a TV Balada.");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextDrawHideForPlayer(playerid, Textdraw0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextDrawHideForPlayer(playerid, Textdraw1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/telespectadores", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(IsPlayerConnected(playerid))
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, 0x2641FEAA, "~x Telespectadores x~");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(new i = 0; i &lt; MAX_PLAYERS; i++)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(IsPlayerConnected(i))
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(Audiencia &gt;= 1)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new NomeJFS[24];
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new JFSPerfect[128];
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GetPlayerName(i, NomeJFS, sizeof(NomeJFS));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format(JFSPerfect, 128, "%s Está Assistindo a Rede Globo JFS", NomeJFS);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, -1, JFSPerfect);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return 1;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/audiencia", cmdtext, true) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"&gt; Você Não é Administrador !");
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Jornal] == 1)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0x2641FEAA," Audiência Jornal :");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format(AudienciaLOL, 100," &gt;&gt; Audiência: {FF0000}%i Pessoas &lt;&lt; ", Audiencia);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, 0x2641FEAA, AudienciaLOL);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; if(PlayerInfo[pInfo][Balada] == 1)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid,0x2641FEAA," Audiência Balada :");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format(AudienciaLOL, 100," &gt;&gt; Audiência: {FF0000}%i Pessoas &lt;&lt; ", Audiencia);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendClientMessage(playerid, 0x2641FEAA, AudienciaLOL);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; if (strcmp("/entrandoooooooo", cmdtext, true) == 0)
&nbsp; &nbsp; {
// ENTRANDO - JORNAL
&nbsp; &nbsp; if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Está TRANCADA !");
&nbsp; &nbsp; if(IsPlayerInRangeOfPoint(playerid, 1.0, 648.0414,-1360.7756,13.5901))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerPos(playerid, 962.7113,-53.3025,1001.1246);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerInterior(playerid, 3);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerFacingAngle(playerid, 90.4818);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
//Saindo - Jornal
&nbsp; &nbsp; if(IsPlayerInRangeOfPoint(playerid, 1.0, 965.0610,-53.1662,1001.1246))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerPos(playerid, 645.1032,-1360.6869,13.5884);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerInterior(playerid, 0);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerFacingAngle(playerid, 270.4818);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
//Entrando - Balada
&nbsp; &nbsp; if(IsPlayerInRangeOfPoint(playerid, 1.0, 647.8179,-1353.9329,13.5477))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerPos(playerid, -2637.3010,1409.5979,906.4609);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerInterior(playerid, 3);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerFacingAngle(playerid, 115.9109);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
//Saindo - Balada
&nbsp; &nbsp; if(IsPlayerInRangeOfPoint(playerid, 1.0, -2634.9578,1409.8467,906.4609))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerPos(playerid, 644.8199,-1354.1106,13.5530);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerInterior(playerid, 0);
&nbsp; &nbsp; &nbsp; &nbsp; SetPlayerFacingAngle(playerid, 270.4818);
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; return true;
&nbsp; &nbsp; }
&nbsp; &nbsp; return false;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
&nbsp; &nbsp; if((newkeys &amp; KEY_SECONDARY_ATTACK))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(IsPlayerInRangeOfPoint(playerid, 1.0, 648.0414,-1360.7756,13.5901) || IsPlayerInRangeOfPoint(playerid, 1.0, 965.0610,-53.1662,1001.1246) ||
&nbsp; &nbsp; &nbsp; &nbsp; IsPlayerInRangeOfPoint(playerid, 1.0, 647.8179,-1353.9329,13.5477) || IsPlayerInRangeOfPoint(playerid, 1.0, -2634.9578,1409.8467,906.4609))
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Está TRANCADA !");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnPlayerCommandText(playerid,"/entrandoooooooo");
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp; &nbsp; return true;
}
forward EntrandoNoArJornal(playerid);
public EntrandoNoArJornal(playerid)
{
&nbsp; &nbsp; SendClientMessage(playerid,0xFF0000FF,"Seu Programa de TV, Está no Ar. DIVULGUE. Use /audiencia para ver Quem Esté Lhe Vendo.");
&nbsp; &nbsp; GetPlayerName(playerid, Nome, sizeof(Nome));
&nbsp; &nbsp; format(string, sizeof(string), "ATENÇÃO:{FF0000} O Programa de TV de {2641FE}%s{FF0000} Começou - ( JORNAL AOVIVO ) - {2641FE}Use /assistirjornal", Nome);
&nbsp; &nbsp; SendClientMessageToAll(0xFF0000FF,string);
&nbsp; &nbsp; return true;
}
forward EntrandoNoArBalada(playerid);
public EntrandoNoArBalada(playerid)
{
&nbsp; &nbsp; SendClientMessage(playerid,0xFF0000FF,"Seu Programa de TV, Está no Ar. DIVULGUE. Use /audiencia para ver Quem Esté Lhe Vendo.");
&nbsp; &nbsp; GetPlayerName(playerid, Nome, sizeof(Nome));
&nbsp; &nbsp; format(string, sizeof(string), "ATENÇÃO:{FF0000} O Programa de TV de {2641FE}%s{FF0000} Começou ( BALADA AOVIVO ) - {2641FE}Use /assistirbalada", Nome);
&nbsp; &nbsp; SendClientMessageToAll(0xFF0000FF,string);
&nbsp; &nbsp; for(new i = 0; i &lt; MAX_PLAYERS; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; PlayerInfo[i][Balada] = 1;
&nbsp; &nbsp; }
&nbsp; &nbsp; return true;
}
stock AssistirBalada(playerid)
{
&nbsp; &nbsp; SetPlayerPos(playerid, -2668.5520,1410.4603,904.4609);
&nbsp; &nbsp; SetPlayerCameraPos(playerid, -2659.6606,1410.3605,912.1703);
&nbsp; &nbsp; SetPlayerCameraLookAt(playerid, -2663.8882,1410.3678,912.1703);
&nbsp; &nbsp; SetPlayerInterior(playerid, 3);
&nbsp; &nbsp; TogglePlayerControllable(playerid, 0);
&nbsp; &nbsp; Urgente[playerid] ++;
&nbsp; &nbsp; TextDrawShowForPlayer(playerid, Textdraw0);
&nbsp; &nbsp; TextDrawShowForPlayer(playerid, Textdraw1);

}
stock AssistirJornal(playerid)
{
&nbsp; &nbsp; SetPlayerPos(playerid, 962.6662,-59.6662, 9500.1000);
&nbsp; &nbsp; SetPlayerCameraPos(playerid, 956.5108,-55.7790,1002.1172);
&nbsp; &nbsp; SetPlayerCameraLookAt(playerid, 958.5601,-56.7886,1002.1172);
&nbsp; &nbsp; SetPlayerInterior(playerid, 3);
&nbsp; &nbsp; TogglePlayerControllable(playerid, 0);
&nbsp; &nbsp; Urgente[playerid] ++;
&nbsp; &nbsp; TextDrawShowForPlayer(playerid, Textdraw0);
&nbsp; &nbsp; TextDrawShowForPlayer(playerid, Textdraw1);
}
stock Desligar(playerid)
{
&nbsp; &nbsp; DuasVezesNao[playerid] &nbsp;= 0;
&nbsp; &nbsp; Audiencia --;
&nbsp; &nbsp; SpawnPlayer(playerid);
&nbsp; &nbsp; Calado[playerid] --;
&nbsp; &nbsp; SetPlayerInterior(playerid, 0);
}
forward AtualizarAudiencia(playerid);
public AtualizarAudiencia(playerid)
{
&nbsp; &nbsp; new Placar[128];
&nbsp; &nbsp; format(Placar, 128, "Audiencia: %d ~y~AoVivo", Audiencia);
&nbsp; &nbsp; return TextDrawSetString(Text:Textdraw0, Placar);
}