Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple INCLUDE esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè INCLUDE 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 INCLUDE sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple INCLUDE is made especially for www.forum.sa-mp.com
- * DO NOT Post the INCLUDE 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 INCLUDE without my permission.
- */
- // ###### --- FUNCTION --- ############ --- FUNCTION --- ######
- /*
- native SetLetterBox(slots,bool:type=false);
- native CreateLetterBox(slots,type,Float:x,Float:y,Float:z,Float:a);
- native DestroyLetterBox(slots);
- */
- #define MAX_SLOTS (200)
- #define LetterBox_OPEN (3408)
- #define LetterBox_CLOSE (3407)
- new LetterBox[MAX_SLOTS];
- #define DestroyLetterBox(%0) DestroyObject(LetterBox[%0])
- stock CreateLetterBox(slots,type,Float:x,Float:y,Float:z,Float:a) {
- LetterBox[slots]=CreateObject(type,x,y,z,0.000,0.000,a); }
- stock SetLetterBox(slots,bool:type=false) {
- new Float:PosLetterBox[6];
- GetObjectPos(LetterBox[slots],PosLetterBox[0],PosLetterBox[1],PosLetterBox[2]);
- GetObjectRot(LetterBox[slots],PosLetterBox[3],PosLetterBox[4],PosLetterBox[5]);
- DestroyLetterBox(slots);
- if(!type) { CreateLetterBox(slots,LetterBox_CLOSE,PosLetterBox[0], PosLetterBox[1], PosLetterBox[2], PosLetterBox[5]); }
- else { CreateLetterBox(slots,LetterBox_OPEN,PosLetterBox[0], PosLetterBox[1], PosLetterBox[2], PosLetterBox[5]); }
- }
- // ###### --- FUNCTION --- ############ --- FUNCTION --- ######
- /*
- #include <a_samp>
- #include <zcmd>
- #include <LetterBox>
- #define FUNCTION:%0(%1) forward%0(%1); public%0(%1)
- #define MAX_BUZONES (5)
- FUNCTION: OnFilterScriptInit() {
- print("\n**************************************");
- print(" Easy LetterBox 'mailbox' ");
- print(" Date: 25/09/2013 ");
- print(" Author: OTACON ");
- print(" --* Downloaded with Success!!. *-- ");
- print("***************************************\n");
- SendRconCommand("hostname Easy LetterBox 'mailbox' ");
- SendRconCommand("gamemodetext By OTACON");
- // ###### TESTING ######
- AddPlayerClass(115,244.3621,1821.4523,17.6406,262.0000,0,0,0,0,0,0); //
- // ###### TESTING ######
- CreateLetterBox(MAX_BUZONES+0,LetterBox_CLOSE,245.0680,1819.7510,17.6406-1,84.9565);
- CreateLetterBox(MAX_BUZONES+1,LetterBox_OPEN,240.5916,1820.3887,17.6406-1,84.9565);
- CreateLetterBox(MAX_BUZONES+2,LetterBox_CLOSE,236.0589,1820.7885,17.6481-1,84.9565);
- CreateLetterBox(MAX_BUZONES+3,LetterBox_OPEN,232.0962,1821.1383,17.6481-1,84.9565);
- CreateLetterBox(MAX_BUZONES+4,LetterBox_CLOSE,228.3653,1821.4677,17.6406-1,84.9565);
- return true;
- }
- FUNCTION: OnFilterScriptExit() {
- print("\n**************************************");
- print(" Easy LetterBox 'mailbox' ");
- print(" Date: 25/09/2013 ");
- print(" Author: OTACON ");
- print(" --* Loaded with Success!!. *-- ");
- print("***************************************\n");
- SendRconCommand("hostname Easy LetterBox 'mailbox' ");
- SendRconCommand("gamemodetext By OTACON");
- DestroyLetterBox(MAX_BUZONES+0);
- DestroyLetterBox(MAX_BUZONES+1);
- DestroyLetterBox(MAX_BUZONES+2);
- DestroyLetterBox(MAX_BUZONES+3);
- DestroyLetterBox(MAX_BUZONES+4);
- return true;
- }
- COMMAND:open(playerid, params[]) {
- SetLetterBox(MAX_BUZONES+0,true);
- SetLetterBox(MAX_BUZONES+1,false);
- SetLetterBox(MAX_BUZONES+2,true);
- SetLetterBox(MAX_BUZONES+3,false);
- SetLetterBox(MAX_BUZONES+4,true);
- return true;
- }
- COMMAND:close(playerid, params[]) {
- SetLetterBox(MAX_BUZONES+0,false);
- SetLetterBox(MAX_BUZONES+1,true);
- SetLetterBox(MAX_BUZONES+2,false);
- SetLetterBox(MAX_BUZONES+3,true);
- SetLetterBox(MAX_BUZONES+4,false);
- return true;
- }
- */
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple INCLUDE esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè INCLUDE 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 INCLUDE sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple INCLUDE is made especially for www.forum.sa-mp.com
- * DO NOT Post the INCLUDE 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 INCLUDE without my permission.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement