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.
- FULLY spaces Theft Credit or
- Publication of this FILTERSCRIPT without my permission.
- SIMPLE FILTERSCRIPT --> Simple Horse Dynamic 'TextDraw' V3
- CREDITOS: OTACON ;)
- NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- */
- #include <a_samp>
- #define VELOCIDAD_CABALLITO 2.0
- #define MAX_CABALLITO (3)
- new Text:CaballitoDinamicoTD[MAX_PLAYERS][MAX_CABALLITO];
- new MatarTimerCaballito[MAX_PLAYERS];
- new TextCaballito[][] = { "ld_otb:hrs1", "ld_otb:hrs2", "ld_otb:hrs3", "ld_otb:hrs4", "ld_otb:hrs5", "ld_otb:hrs6", "ld_otb:hrs7", "ld_otb:hrs8" };
- new Float:PosicionCaballito[3] = { 30.000000, 565.000000, 30.000000};
- new Float:AlturaCaballito[3] = { 120.000000, 180.000000, 240.000000 };
- public OnFilterScriptInit() {
- print("\n**************************************");
- print(" Simple Horse Dynamic 'TextDraw' V3 ");
- print(" Date: 21/07/2013 ");
- print(" Author: OTACON ");
- print(" --* Loaded with Success!!. *-- ");
- print("***************************************\n");
- return true;
- }
- public OnFilterScriptExit() {
- print("\n**************************************");
- print(" Simple Horse Dynamic 'TextDraw' V3 ");
- print(" Date: 21/07/2013 ");
- print(" Author: OTACON ");
- print(" --* Downloaded with Success!!. *-- ");
- print("***************************************\n");
- return true;
- }
- public OnPlayerConnect(playerid) {
- CaballitoDinamicoTD[playerid][0] = TextDrawCreate(30.000000, AlturaCaballito[0], "_");
- CaballitoDinamicoTD[playerid][1] = TextDrawCreate(30.000000, AlturaCaballito[1], "_");
- CaballitoDinamicoTD[playerid][2] = TextDrawCreate(30.000000, AlturaCaballito[2], "_");
- for(new slots=0; slots<MAX_CABALLITO; slots++) {
- TextDrawBackgroundColor(CaballitoDinamicoTD[playerid][slots], 255);
- TextDrawFont(CaballitoDinamicoTD[playerid][slots], 4);
- TextDrawLetterSize(CaballitoDinamicoTD[playerid][slots], 0.500000, 1.000000);
- TextDrawColor(CaballitoDinamicoTD[playerid][slots], -1);
- TextDrawSetOutline(CaballitoDinamicoTD[playerid][slots], 0);
- TextDrawSetProportional(CaballitoDinamicoTD[playerid][slots], 1);
- TextDrawSetShadow(CaballitoDinamicoTD[playerid][slots], 1);
- TextDrawUseBox(CaballitoDinamicoTD[playerid][slots], 1);
- TextDrawBoxColor(CaballitoDinamicoTD[playerid][slots], 255);
- TextDrawTextSize(CaballitoDinamicoTD[playerid][slots], 70.000000, 62.000000);
- } return true;
- }
- public OnPlayerDisconnect(playerid, reason) {
- for(new slots=0; slots<MAX_CABALLITO; slots++) {
- TextDrawHideForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
- TextDrawDestroy(CaballitoDinamicoTD[playerid][slots]);
- } KillTimer(MatarTimerCaballito[playerid]);
- return true;
- }
- public OnPlayerSpawn(playerid) {
- for(new slots=0; slots<MAX_CABALLITO; slots++) {
- TextDrawShowForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
- } MatarTimerCaballito[playerid]=SetTimerEx("MoverCaballito", 200, true, "d", playerid);
- return true;
- }
- forward MoverCaballito(playerid);
- public MoverCaballito(playerid) {
- static indexcaballito;
- indexcaballito++;
- PosicionCaballito[0]+=VELOCIDAD_CABALLITO;
- for(new slots=0; slots<3; slots++) {
- TextDrawHideForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
- TextDrawDestroy(CaballitoDinamicoTD[playerid][slots]);
- new Float:AlturaCaballitoTemp=0.0;
- switch(slots) {
- case 0: AlturaCaballitoTemp=AlturaCaballito[0];
- case 1: AlturaCaballitoTemp=AlturaCaballito[1];
- case 2: AlturaCaballitoTemp=AlturaCaballito[2];
- default: AlturaCaballitoTemp=0.0; }
- CaballitoDinamicoTD[playerid][slots] = TextDrawCreate(PosicionCaballito[0], AlturaCaballitoTemp, "_");
- TextDrawBackgroundColor(CaballitoDinamicoTD[playerid][slots], 255);
- TextDrawFont(CaballitoDinamicoTD[playerid][slots], 4);
- TextDrawLetterSize(CaballitoDinamicoTD[playerid][slots], 0.500000, 1.000000);
- TextDrawColor(CaballitoDinamicoTD[playerid][slots], -1);
- TextDrawSetOutline(CaballitoDinamicoTD[playerid][slots], 0);
- TextDrawSetProportional(CaballitoDinamicoTD[playerid][slots], 1);
- TextDrawSetShadow(CaballitoDinamicoTD[playerid][slots], 1);
- TextDrawUseBox(CaballitoDinamicoTD[playerid][slots], 1);
- TextDrawBoxColor(CaballitoDinamicoTD[playerid][slots], 255);
- TextDrawTextSize(CaballitoDinamicoTD[playerid][slots], 70.000000, 62.000000);
- TextDrawSetString(CaballitoDinamicoTD[playerid][slots], TextCaballito[indexcaballito]);
- TextDrawShowForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
- }
- if(indexcaballito>=7) indexcaballito=0;
- if(PosicionCaballito[0]>=PosicionCaballito[1]) PosicionCaballito[0]=PosicionCaballito[2], PosicionCaballito[0]=PosicionCaballito[2];
- }
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de este FILTERSCRIPT sin Mi Permiso.
- FULLY spaces Theft Credit or
- Publication of this FILTERSCRIPT without my permission.
- SIMPLE FILTERSCRIPT --> Simple Horse Dynamic 'TextDraw' V3
- 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