Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de este FILTERSCRIPT sin Mi Permiso.
- SIMPLE FILTERSCRIPT --> Simple Anuncios Dinamicos 'TextDraw'
- CREDITOS: OTACON ;)
- NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- */
- #include <a_samp>
- new NivelAnunciosTD=0;
- new MatarAnunciosTD;
- new Text:TDDinamicos[MAX_PLAYERS][2];
- enum enumanuncios {
- TituloAnuncio[100],
- TextoAnuncio[100], };
- new ListaAnuncio[10][enumanuncios] = {
- {"~g~[Here is a Title 1]", "~g~entering text here."}, //Maximum Characters - Title = 21 - Text = 25
- {"~p~[Here is a Title 2]", "~w~entering text here."},
- {"~p~[Here is a Title 3]", "~w~entering text here."},
- {"~p~[Here is a Title 4]", "~w~entering text here."},
- {"~p~[Here is a Title 5]", "~w~entering text here."},
- {"~p~[Here is a Title 6]", "~w~entering text here."},
- {"~p~[Here is a Title 7]", "~w~entering text here."},
- {"~p~[Here is a Title 8]", "~w~entering text here."},
- {"~p~[Here is a Title 9]", "~w~entering text here."},
- {"~p~[Here is a Title 10]", "~w~entering text here."} };
- public OnFilterScriptInit() {
- print("\n**************************************");
- print(" Simple Anuncios Dinamicos 'TextDraw' ");
- print(" Fecha: 15/07/2013 ");
- print(" Autor: OTACON ");
- print(" --* Cargado con Exito!!. *-- ");
- print("***************************************\n");
- MatarAnunciosTD=SetTimer("TimerAnuncios", 1*1000, true);
- return true;
- }
- public OnFilterScriptExit() {
- print("\n**************************************");
- print(" Simple Anuncios Dinamicos 'TextDraw' ");
- print(" Fecha: 15/07/2013 ");
- print(" Autor: OTACON ");
- print(" --* Descargado con Exito!!. *-- ");
- print("***************************************\n");
- KillTimer(MatarAnunciosTD);
- return true;
- }
- public OnPlayerConnect(playerid) {
- TDDinamicos[playerid][0]=TextDrawCreate(385.000000, 347.000000, "_");
- TextDrawAlignment(TDDinamicos[playerid][0], 2);
- TextDrawBackgroundColor(TDDinamicos[playerid][0], 255);
- TextDrawFont(TDDinamicos[playerid][0], 1);
- TextDrawLetterSize(TDDinamicos[playerid][0], 0.290000, 1.700001);
- TextDrawColor(TDDinamicos[playerid][0], -1);
- TextDrawSetOutline(TDDinamicos[playerid][0], 1);
- TextDrawSetProportional(TDDinamicos[playerid][0], 1);
- TextDrawUseBox(TDDinamicos[playerid][0], 1);
- TextDrawBoxColor(TDDinamicos[playerid][0], 0x00000055);
- TextDrawTextSize(TDDinamicos[playerid][0], 5.000000, 485.000000);
- TextDrawSetSelectable(TDDinamicos[playerid][0], 0);
- TDDinamicos[playerid][1]=TextDrawCreate(234.000000, 315.000000, "~w~ - Simple Dynamic Ads - ~n~~y~ By OTACON");
- TextDrawAlignment(TDDinamicos[playerid][1], 2);
- TextDrawBackgroundColor(TDDinamicos[playerid][1], 255);
- TextDrawFont(TDDinamicos[playerid][1], 1);
- TextDrawLetterSize(TDDinamicos[playerid][1], 0.329999, 1.500000);
- TextDrawColor(TDDinamicos[playerid][1], -1);
- TextDrawSetOutline(TDDinamicos[playerid][1], 1);
- TextDrawSetProportional(TDDinamicos[playerid][1], 1);
- TextDrawSetSelectable(TDDinamicos[playerid][1], 0);
- return true;
- }
- public OnPlayerSpawn(playerid) {
- TextDrawShowForPlayer(playerid,TDDinamicos[playerid][0]);
- TextDrawShowForPlayer(playerid,TDDinamicos[playerid][1]);
- return true;
- }
- public OnPlayerDisconnect(playerid, reason) {
- TextDrawHideForPlayer(playerid,TDDinamicos[playerid][0]);
- TextDrawDestroy(TDDinamicos[playerid][0]);
- TextDrawHideForPlayer(playerid,TDDinamicos[playerid][1]);
- TextDrawDestroy(TDDinamicos[playerid][1]);
- return true;
- }
- forward TimerAnuncios();
- public TimerAnuncios() {
- new str[400];
- for(new playerid=0; playerid<GetMaxPlayers(); playerid++) {
- if(!IsPlayerConnected(playerid)) continue;
- if(IsPlayerNPC(playerid)) continue;
- switch(NivelAnunciosTD) {
- case 0: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[1][TituloAnuncio], ListaAnuncio[1][TextoAnuncio], ListaAnuncio[2][TituloAnuncio], ListaAnuncio[2][TextoAnuncio], ListaAnuncio[3][TituloAnuncio],
- ListaAnuncio[3][TextoAnuncio], ListaAnuncio[4][TituloAnuncio], ListaAnuncio[4][TextoAnuncio], ListaAnuncio[5][TituloAnuncio], ListaAnuncio[5][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 1: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[2][TituloAnuncio], ListaAnuncio[2][TextoAnuncio], ListaAnuncio[3][TituloAnuncio], ListaAnuncio[3][TextoAnuncio], ListaAnuncio[4][TituloAnuncio],
- ListaAnuncio[4][TextoAnuncio], ListaAnuncio[5][TituloAnuncio], ListaAnuncio[5][TextoAnuncio], ListaAnuncio[6][TituloAnuncio], ListaAnuncio[6][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 2: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[3][TituloAnuncio], ListaAnuncio[3][TextoAnuncio], ListaAnuncio[4][TituloAnuncio], ListaAnuncio[4][TextoAnuncio], ListaAnuncio[5][TituloAnuncio],
- ListaAnuncio[5][TextoAnuncio], ListaAnuncio[6][TituloAnuncio], ListaAnuncio[6][TextoAnuncio], ListaAnuncio[7][TituloAnuncio], ListaAnuncio[7][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 3: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[4][TituloAnuncio], ListaAnuncio[4][TextoAnuncio], ListaAnuncio[5][TituloAnuncio], ListaAnuncio[5][TextoAnuncio], ListaAnuncio[6][TituloAnuncio],
- ListaAnuncio[6][TextoAnuncio], ListaAnuncio[7][TituloAnuncio], ListaAnuncio[7][TextoAnuncio], ListaAnuncio[8][TituloAnuncio], ListaAnuncio[8][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 4: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[5][TituloAnuncio], ListaAnuncio[5][TextoAnuncio], ListaAnuncio[6][TituloAnuncio], ListaAnuncio[6][TextoAnuncio], ListaAnuncio[7][TituloAnuncio],
- ListaAnuncio[7][TextoAnuncio], ListaAnuncio[8][TituloAnuncio], ListaAnuncio[8][TextoAnuncio], ListaAnuncio[9][TituloAnuncio], ListaAnuncio[9][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 5: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[6][TituloAnuncio], ListaAnuncio[6][TextoAnuncio], ListaAnuncio[7][TituloAnuncio], ListaAnuncio[7][TextoAnuncio], ListaAnuncio[8][TituloAnuncio],
- ListaAnuncio[8][TextoAnuncio], ListaAnuncio[9][TituloAnuncio], ListaAnuncio[9][TextoAnuncio], ListaAnuncio[0][TituloAnuncio], ListaAnuncio[0][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 6: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[7][TituloAnuncio], ListaAnuncio[7][TextoAnuncio], ListaAnuncio[8][TituloAnuncio], ListaAnuncio[8][TextoAnuncio], ListaAnuncio[9][TituloAnuncio],
- ListaAnuncio[9][TextoAnuncio], ListaAnuncio[0][TituloAnuncio], ListaAnuncio[0][TextoAnuncio], ListaAnuncio[1][TituloAnuncio], ListaAnuncio[1][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 7: {
- NivelAnunciosTD++;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[8][TituloAnuncio], ListaAnuncio[8][TextoAnuncio], ListaAnuncio[9][TituloAnuncio], ListaAnuncio[9][TextoAnuncio], ListaAnuncio[0][TituloAnuncio],
- ListaAnuncio[0][TextoAnuncio], ListaAnuncio[1][TituloAnuncio], ListaAnuncio[1][TextoAnuncio], ListaAnuncio[2][TituloAnuncio], ListaAnuncio[2][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- } case 8: {
- NivelAnunciosTD=0;
- format(str, sizeof(str), "%s %s ~n~%s %s ~n~%s %s ~n~%s %s ~n~%s %s \
- ", ListaAnuncio[9][TituloAnuncio], ListaAnuncio[9][TextoAnuncio], ListaAnuncio[0][TituloAnuncio], ListaAnuncio[0][TextoAnuncio], ListaAnuncio[1][TituloAnuncio],
- ListaAnuncio[1][TextoAnuncio], ListaAnuncio[2][TituloAnuncio], ListaAnuncio[2][TextoAnuncio], ListaAnuncio[3][TituloAnuncio], ListaAnuncio[3][TextoAnuncio] );
- TextDrawSetString(TDDinamicos[playerid][0], str);
- }
- }
- }
- return true;
- }
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de este FILTERSCRIPT sin Mi Permiso.
- SIMPLE FILTERSCRIPT --> Simple Anuncios Dinamicos 'TextDraw'
- CREDITOS: OTACON ;)
- NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement