Feitosa",tv, "Fechar", ""); return true; } if(strcmp("/creditostv", cmdtext, true) == 0) { new CreditosTV[50]; strcat(CreditosTV,"{FF0000}Criado Por: Jonathan Feitosa \n"); ShowPlayerDialog(playerid, 4532, DIALOG_STYLE_MSGBOX, "Creditos Sistema de Televisao",CreditosTV, "Fechar", ""); return true; } if (strcmp("/assistirjornal", cmdtext, true) == 0) { if(PlayerInfo[pInfo][Jornal] == 0) return SendClientMessage(playerid,0xFF0000FF," Nenhuma Programacao Em Andamento... !"); if(DuasVezesNao[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF," Voce Ja Esta Assintindo TV !"); Audiencia ++; Calado[playerid] ++; DuasVezesNao[playerid] = 1; PlayerInfo[pInfo][Jornal] = 1; AssistirJornal(playerid); SendClientMessage(playerid,0xFF0000FF,"Voce Foi Calado, Escute o Jornal, Para Sair Use {2641FE}/desligartv !"); return true; } if (strcmp("/assistirbalada", cmdtext, true) == 0) { if(PlayerInfo[pInfo][Balada] == 0) return SendClientMessage(playerid,0xFF0000FF," Nenhuma Programacao de Balada Em Andamento... ! !"); if(DuasVezesNao[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF," Voce Ja Esta Assintindo TV !"); Audiencia ++; Calado[playerid] ++; PlayerInfo[pInfo][Balada] = 1; DuasVezesNao[playerid] = 1; AssistirBalada(playerid); SendClientMessage(playerid,0xFF0000FF,"Voce Foi Calado, Curta e Escute a Balada, Para Sair Use {2641FE}/desligartv !"); return true; } if (strcmp("/desligartv", cmdtext, true) == 0) { if(DuasVezesNao[playerid] < 1) return SendClientMessage(playerid,0x2641FEAA,"Voce Nao Esta Assistindo TV."); if(PlayerInfo[pInfo][Jornal] == 1) { Desligar(playerid); SendClientMessage(playerid,0x2641FEAA,"Voce Desligou a TV Jornal."); TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); return true; } if(PlayerInfo[pInfo][Balada] == 1) { Desligar(playerid); SendClientMessage(playerid,0x2641FEAA,"Voce Desligou a TV Balada."); TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); return true; } return true; } if (strcmp("/telespectadores", cmdtext, true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0x2641FEAA, "~x Telespectadores x~"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Audiencia >= 1) { new NomeJFS[24]; new JFSPerfect[128]; GetPlayerName(i, NomeJFS, sizeof(NomeJFS)); format(JFSPerfect, 128, "%s Esta Assistindo a Rede Globo JFS", NomeJFS); SendClientMessage(playerid, -1, JFSPerfect); } } } } return 1; } if (strcmp("/audiencia", cmdtext, true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"> Voce Nao e Administrador !"); if(PlayerInfo[pInfo][Jornal] == 1) { SendClientMessage(playerid,0x2641FEAA," Audiencia Jornal :"); format(AudienciaLOL, 100," >> Audiencia: {FF0000}%i Pessoas << ", Audiencia); SendClientMessage(playerid, 0x2641FEAA, AudienciaLOL); return true; } if(PlayerInfo[pInfo][Balada] == 1) { SendClientMessage(playerid,0x2641FEAA," Audiencia Balada :"); format(AudienciaLOL, 100," >> Audiencia: {FF0000}%i Pessoas << ", Audiencia); SendClientMessage(playerid, 0x2641FEAA, AudienciaLOL); return true; } return true; } if (strcmp("/entrandoooooooo", cmdtext, true) == 0) {// ENTRANDO - JORNAL if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Esta TRANCADA !"); if(IsPlayerInRangeOfPoint(playerid, 1.0, 648.0414,-1360.7756,13.5901)) { SetPlayerPos(playerid, 962.7113,-53.3025,1001.1246); SetPlayerInterior(playerid, 3); SetPlayerFacingAngle(playerid, 90.4818); return true; }//Saindo - Jornal if(IsPlayerInRangeOfPoint(playerid, 1.0, 965.0610,-53.1662,1001.1246)) { SetPlayerPos(playerid, 645.1032,-1360.6869,13.5884); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 270.4818); return true; }//Entrando - Balada if(IsPlayerInRangeOfPoint(playerid, 1.0, 647.8179,-1353.9329,13.5477)) { SetPlayerPos(playerid, -2637.3010,1409.5979,906.4609); SetPlayerInterior(playerid, 3); SetPlayerFacingAngle(playerid, 115.9109); return true; }//Saindo - Balada if(IsPlayerInRangeOfPoint(playerid, 1.0, -2634.9578,1409.8467,906.4609)) { SetPlayerPos(playerid, 644.8199,-1354.1106,13.5530); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 270.4818); return true; } return true; } return false;}public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if((newkeys & KEY_SECONDARY_ATTACK)) { if(IsPlayerInRangeOfPoint(playerid, 1.0, 648.0414,-1360.7756,13.5901) || IsPlayerInRangeOfPoint(playerid, 1.0, 965.0610,-53.1662,1001.1246) || IsPlayerInRangeOfPoint(playerid, 1.0, 647.8179,-1353.9329,13.5477) || IsPlayerInRangeOfPoint(playerid, 1.0, -2634.9578,1409.8467,906.4609)) { if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Esta TRANCADA !"); OnPlayerCommandText(playerid,"/entrandoooooooo"); } } return true;}forward EntrandoNoArJornal(playerid);public EntrandoNoArJornal(playerid){ SendClientMessage(playerid,0xFF0000FF,"Seu Programa de TV, Esta no Ar. DIVULGUE. Use /audiencia para ver Quem Este Lhe Vendo."); GetPlayerName(playerid, Nome, sizeof(Nome)); format(string, sizeof(string), "ATENCAO:{FF0000} O Programa de TV de {2641FE}%s{FF0000} Comecou - ( JORNAL AOVIVO ) - {2641FE}Use /assistirjornal", Nome); SendClientMessageToAll(0xFF0000FF,string); return true;}forward EntrandoNoArBalada(playerid);public EntrandoNoArBalada(playerid){ SendClientMessage(playerid,0xFF0000FF,"Seu Programa de TV, Esta no Ar. DIVULGUE. Use /audiencia para ver Quem Este Lhe Vendo."); GetPlayerName(playerid, Nome, sizeof(Nome)); format(string, sizeof(string), "ATENCAO:{FF0000} O Programa de TV de {2641FE}%s{FF0000} Comecou ( BALADA AOVIVO )