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 Text:counter[2],timer,count,bool:active,cfade;
- forward OnFunctionCounter(playerid);
- forward update(playerid);
- public update(playerid){
- TextDrawShowForPlayer(playerid,counter[0]);
- TextDrawShowForPlayer(playerid,counter[1]);
- new
- data[10];
- if(!active){
- if(count>0){
- format(data, sizeof(data), "%d", count);
- TextDrawSetString(counter[1], data);
- count--;
- PlayerPlaySound(playerid, 1056, 0,0,0);
- }else{
- TextDrawSetString(counter[1], "go!");
- active=true;
- PlayerPlaySound(playerid, 1057, 0,0,0);
- //PlayerPlaySound(playerid, 15802, 0,0,0);//go go go!
- CallLocalFunction("OnFunctionCounter", "d", playerid);
- }
- }else stop(playerid);
- }
- stock start(playerid, &color=0x8C00FF55, &seconds=20){
- KillTimer(timer);
- count=seconds;
- cfade=color;
- active=false;
- TextDrawHideForPlayer(playerid,counter[0]);
- TextDrawDestroy(counter[0]);
- TextDrawHideForPlayer(playerid,counter[1]);
- TextDrawDestroy(counter[1]);
- counter[0] = TextDrawCreate(254.857177, 77.653381, "ld_beat:chit");
- TextDrawLetterSize(counter[0], 0.000000, 0.000000);
- TextDrawTextSize(counter[0], 127.999923, 134.399963);
- TextDrawAlignment(counter[0], 1);
- TextDrawColor(counter[0], cfade);
- TextDrawSetShadow(counter[0], 0);
- TextDrawSetOutline(counter[0], 0);
- TextDrawFont(counter[0], 4);
- counter[1] = TextDrawCreate(318.857299, 125.440040, "_");
- TextDrawLetterSize(counter[1], 0.769999, 3.925336);
- TextDrawAlignment(counter[1], 2);
- TextDrawColor(counter[1], -1);
- TextDrawSetShadow(counter[1], 0);
- TextDrawSetOutline(counter[1], 1);
- TextDrawBackgroundColor(counter[1], 51);
- TextDrawFont(counter[1], 3);
- TextDrawSetProportional(counter[1], 1);
- timer=SetTimerEx("update",1000,true,"d",playerid);
- }
- stock stop(playerid){
- KillTimer(timer);
- count=0;
- active=false;
- TextDrawHideForPlayer(playerid,counter[0]);
- TextDrawDestroy(counter[0]);
- TextDrawHideForPlayer(playerid,counter[1]);
- TextDrawDestroy(counter[1]);
- }
- COMMAND:test1(playerid, params[]){
- start(playerid);
- return true;
- }
- COMMAND:test2(playerid, params[]){
- stop(playerid);
- return true;
- }
- public OnFunctionCounter(playerid){
- SendClientMessage(playerid, -1, "INFO: the counter has finished!.");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement