Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FILTERSCRIPT sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
- #include <a_samp>
- #include <zcmd>
- new
- video_kill,
- Text:video,
- Text:screen
- ;
- new pVideitosID;
- enum iVideos
- {
- pMAX_FRAME,
- Float:pFPS_VIDEO,
- pNAME_TXD[144],
- pURL_AUDIO[160],
- pFRAMES,
- }
- #define MAX_VIDEOS (1)
- new pVideos[MAX_VIDEOS][iVideos]=
- {
- { /*FRAMES()*/(270), /*100/FPS*/33.366699, /*.TXD*/"movie", /*AUDIO*/"http://" }
- };
- public OnFilterScriptInit(){
- video = TextDrawCreate(22.399999, 23.146665, "LD_SPAC:white");
- TextDrawLetterSize(video, 0.000000, 0.000000);
- TextDrawTextSize(video, 589.599975, 405.440002);
- TextDrawAlignment(video, 1);
- TextDrawColor(video, -1);
- TextDrawSetShadow(video, 0);
- TextDrawSetOutline(video, 0);
- TextDrawFont(video, 4);
- screen = TextDrawCreate(2.000000, 1.500000, "usebox");
- TextDrawLetterSize(screen, 0.000000, 49.378147);
- TextDrawTextSize(screen, 637.199951, 0.000000);
- TextDrawAlignment(screen, 1);
- TextDrawColor(screen, 0);
- TextDrawUseBox(screen, true);
- TextDrawBoxColor(screen, 102);
- TextDrawSetShadow(screen, 0);
- TextDrawSetOutline(screen, 0);
- TextDrawFont(screen, 0);
- return true;
- }
- COMMAND:samptube(playerid, params[]){
- pVideitosID=0;
- pVideos[pVideitosID][pFRAMES]=0;
- TextDrawShowForPlayer(playerid,video);
- TextDrawShowForPlayer(playerid,screen);
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, pVideos[pVideitosID][pURL_AUDIO]);
- KillTimer(video_kill);
- video_kill = SetTimerEx("video_time",floatround(pVideos[pVideitosID][pFPS_VIDEO]),false,"i",playerid);
- return true;
- }
- forward video_time(playerid);
- public video_time(playerid){
- new s[50];
- if(pVideos[pVideitosID][pFRAMES] <= pVideos[pVideitosID][pMAX_FRAME]){
- format(s, sizeof(s), "%s:Imagen_%d", pVideos[pVideitosID][pNAME_TXD], pVideos[pVideitosID][pFRAMES]);
- pVideos[pVideitosID][pFRAMES]++;
- TextDrawSetString(video, s);
- TextDrawShowForPlayer(playerid,video);
- KillTimer(video_kill);
- video_kill = SetTimerEx("video_time",floatround(pVideos[pVideitosID][pFPS_VIDEO]),false,"i",playerid);
- }else{
- pVideos[pVideitosID][pFRAMES]=0;
- TextDrawHideForPlayer(playerid,video);
- TextDrawHideForPlayer(playerid,screen);
- StopAudioStreamForPlayer(playerid);
- KillTimer(video_kill);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement