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>
- #include <sscanf2>
- #define B "{FFFFFF}" //white
- #define R "{D50000}" //red
- #define MAX_TREE (14)
- new Text:TreeTD[MAX_TREE],
- LittletreeTDKillMovement[MAX_PLAYERS];
- public OnPlayerClickTextDraw(playerid, Text:clickedid) {
- for(new index=1; index<4; index++) {
- if(clickedid == TreeTD[index]) {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://www.sonidosmp3gratis.com/sounds/007757826_prev");
- CancelSelectTextDraw(playerid);
- for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
- switch(random(11)){
- case 0: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"an average dirty.");}
- case 1: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"false one hundred U.S. dollars.");}
- case 2: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"a day like OTACON.");}
- case 3: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"one broken stereo.");}
- case 4: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"a prostitute for 99 years.");}
- case 5: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"a bicycle with one wheel.");}
- case 6: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"a kick in the ortho.");}
- case 7: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"a very merry christmas.");}
- case 8: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"one old nougat.");}
- case 9: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"used a dildo.");}
- default: {SendClientMessage(playerid, -1, ""B"INFO: "R"Gift of 'santa claus': "B"nothing, do not want 'santa claus'.");}
- }
- }
- } return true;
- }
- COMMAND:gifttoall(playerid, params[]) {
- for(new player, user = GetMaxPlayers(); player != user; player++) {
- if(!IsPlayerConnected(player)) continue;
- StopAudioStreamForPlayer(player);
- PlayAudioStreamForPlayer(player, "http://www.sonidosmp3gratis.com/sounds/christmas_bells.mp3");
- for(new msg=0; msg<32; msg++){SendClientMessage(player, -1, " ");}
- SelectTextDraw(player, 0xFF0000FF); }
- return true;
- }
- COMMAND:gifttoplayer(playerid, params[]) {
- if(sscanf(params, "r", params[0])) return SendClientMessage(playerid, -1, ""B"INFO: "R"Use the command "B"/gifttoplayer [ID]");
- if(params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, ""B"INFO: "R"The ID entered is invalid!.");
- if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, -1, ""B"INFO: "R"The ID entered is not connected!.");
- if(params[0] == playerid) return SendClientMessage(playerid, -1, ""B"INFO: "R"You can not give yourself gifts!.");
- StopAudioStreamForPlayer(params[0]);
- PlayAudioStreamForPlayer(params[0], "http://www.sonidosmp3gratis.com/sounds/christmas_bells.mp3");
- for(new msg=0; msg<32; msg++){SendClientMessage(params[0], -1, " ");}
- SelectTextDraw(params[0], 0xFF0000FF);
- return true;
- }
- COMMAND:christmas(playerid, params[]) {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://www.sonidosmp3gratis.com/sounds/cajas-registradoras_5.mp3");
- for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
- return true;
- }
- stock SetAlphaColor(color , alpha) return ((color >>> 8) << 8) + alpha; // by Daniel-92
- public OnFilterScriptInit() {
- TreeTD[0] = TextDrawCreate(380.000000, 214.000000, "_"); //tree
- TextDrawBackgroundColor(TreeTD[0], 0x00B20000);
- TextDrawFont(TreeTD[0], TEXT_DRAW_FONT_MODEL_PREVIEW);
- TextDrawLetterSize(TreeTD[0], 3.599998, 2.000000);
- TextDrawColor(TreeTD[0], -1);
- TextDrawSetOutline(TreeTD[0], 0);
- TextDrawSetProportional(TreeTD[0], 1);
- TextDrawSetShadow(TreeTD[0], 1);
- TextDrawUseBox(TreeTD[0], 1);
- TextDrawBoxColor(TreeTD[0], 255);
- TextDrawTextSize(TreeTD[0], 289.000000, 210.000000);
- TextDrawSetPreviewModel(TreeTD[0], 19076);
- TextDrawSetPreviewRot(TreeTD[0], -16.000000, 0.000000, -55.000000, 1.000000);
- TextDrawSetSelectable(TreeTD[0], false);
- TreeTD[5] = TextDrawCreate(394.000000, 298.000000, "_"); //bush
- TextDrawSetPreviewModel(TreeTD[5], 826);
- TextDrawSetPreviewRot(TreeTD[5], -16.000000, 0.000000, -55.000000, 1.000000);
- TreeTD[1] = TextDrawCreate(490.000000, 383.000000, "_"); //gift 1
- TextDrawSetPreviewModel(TreeTD[1], 19057);
- TextDrawSetPreviewRot(TreeTD[1], -16.000000, 0.000000, -55.000000, 1.000000);
- TreeTD[2] = TextDrawCreate(424.000000, 368.000000, "_"); //gift 2
- TextDrawSetPreviewModel(TreeTD[2], 19055);
- TextDrawSetPreviewRot(TreeTD[2], -16.000000, 0.000000, -55.000000, 1.000000);
- TreeTD[3] = TextDrawCreate(556.000000, 368.000000, "_"); //gift 3
- TextDrawSetPreviewModel(TreeTD[3], 19058);
- TextDrawSetPreviewRot(TreeTD[3], -16.000000, 0.000000, -55.000000, 1.000000);
- TreeTD[4] = TextDrawCreate(553.000000, 346.000000, "_"); //christmas hat
- TextDrawSetPreviewModel(TreeTD[4], 19065);
- TextDrawSetPreviewRot(TreeTD[4], -16.000000, 30.000000, 2.000000, 1.000000);
- for(new index=1; index<6; index++) {
- TextDrawBackgroundColor(TreeTD[index], 0x00000000);
- TextDrawFont(TreeTD[index], TEXT_DRAW_FONT_MODEL_PREVIEW);
- TextDrawLetterSize(TreeTD[index], 0.500000, 1.000000);
- TextDrawColor(TreeTD[index], -1);
- TextDrawSetOutline(TreeTD[index], 0);
- TextDrawSetProportional(TreeTD[index], 1);
- TextDrawSetShadow(TreeTD[index], 1);
- TextDrawUseBox(TreeTD[index], 1);
- TextDrawBoxColor(TreeTD[index], 255);
- TextDrawTextSize(TreeTD[index], 85.000000, 67.000000);
- TextDrawSetSelectable(TreeTD[index], true); }
- TextDrawSetSelectable(TreeTD[4], false);
- TextDrawSetSelectable(TreeTD[5], false);
- TextDrawTextSize(TreeTD[5], 260.000000, 222.000000);
- TreeTD[6] = TextDrawCreate(478.000000, 245.000000, "]"); //starlets
- TextDrawLetterSize(TreeTD[6], 0.509999, 1.699999);
- TreeTD[7] = TextDrawCreate(451.000000, 260.000000, "]");
- TextDrawLetterSize(TreeTD[7], 0.509999, 1.699999);
- TreeTD[8] = TextDrawCreate(450.000000, 236.000000, "]");
- TextDrawLetterSize(TreeTD[8], 0.509999, 1.699999);
- TreeTD[9] = TextDrawCreate(563.000000, 267.000000, "]");
- TextDrawLetterSize(TreeTD[9], 0.509999, 1.699999);
- TreeTD[10] = TextDrawCreate(588.000000, 253.000000, "]");
- TextDrawLetterSize(TreeTD[10], 0.509999, 1.699999);
- TreeTD[11] = TextDrawCreate(594.000000, 278.000000, "]");
- TextDrawLetterSize(TreeTD[11], 0.509999, 1.699999);
- TreeTD[12] = TextDrawCreate(546.000000, 227.000000, "]");
- TextDrawLetterSize(TreeTD[12], 0.820000, 2.899999);
- TreeTD[13] = TextDrawCreate(484.000000, 219.000000, "]");
- TextDrawLetterSize(TreeTD[13], 0.690000, 2.200000);
- for(new index=6; index<14; index++) {
- TextDrawBackgroundColor(TreeTD[index], 255);
- TextDrawFont(TreeTD[index], 2);
- TextDrawColor(TreeTD[index], -1);
- TextDrawSetOutline(TreeTD[index], 1);
- TextDrawSetProportional(TreeTD[index], 1);
- TextDrawSetSelectable(TreeTD[index], false); }
- return true;
- }
- public OnFilterScriptExit() {
- for(new index=0; index<MAX_TREE; index++) \
- TextDrawDestroy(TreeTD[index]);
- return true;
- }
- public OnPlayerConnect(playerid) {
- for(new index=0; index<MAX_TREE; index++) \
- TextDrawHideForPlayer(playerid,TreeTD[index]);
- KillTimer(LittletreeTDKillMovement[playerid]);
- return true;
- }
- public OnPlayerDisconnect(playerid, reason) {
- for(new index=0; index<MAX_TREE; index++) \
- TextDrawHideForPlayer(playerid,TreeTD[index]);
- KillTimer(LittletreeTDKillMovement[playerid]);
- return true;
- }
- public OnPlayerSpawn(playerid) {
- for(new index=0; index<MAX_TREE; index++) \
- TextDrawShowForPlayer(playerid,TreeTD[index]);
- KillTimer(LittletreeTDKillMovement[playerid]);
- LittletreeTDKillMovement[playerid] = SetTimerEx("TreeTDMovement", 500, true, "d", playerid);
- CallLocalFunction("OnPlayerCommandText", "is", playerid, "/christmas");
- SendClientMessage(playerid, -1, ""B"INFO: "R"Use the command "B"/christmas "R"to hear the melody of Christmas"B"!.");
- return true;
- }
- forward TreeTDMovement(playerid);
- public TreeTDMovement(playerid) {
- for(new index=6; index<14; index++) {
- TextDrawHideForPlayer(playerid,TreeTD[index]);
- switch(random(2)){
- case 0: {TextDrawBackgroundColor(TreeTD[index], SetAlphaColor(0x000000FF, 0x00000055)); TextDrawColor(TreeTD[index], SetAlphaColor(0xFFFFFBFF, 0xFFFFFB55));}
- case 1: {TextDrawBackgroundColor(TreeTD[index], SetAlphaColor(0xFFFFFB55, 0xFFFFFBFF)); TextDrawColor(TreeTD[index], SetAlphaColor(0x00000055, 0x000000FF));}
- } TextDrawShowForPlayer(playerid,TreeTD[index]);
- }
- }
- /*
- * ## 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.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement