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>
- new Text:TDchat[6][4],
- TDdata[4][100],
- TDname[4][25],
- COLORchat[4]={0x8700FFFF/*violeta*/,0x007AFFFF/*azul*/,0x008A00FF/*verde*/,0xFDFF00FF/*amarillo*/};
- public OnPlayerText(playerid, text[]){
- if(strlen(text)<96 || strlen(text)>0){
- new name[25];
- GetPlayerName(playerid, name, 25);
- ActualizarCHAT(playerid, text, name);
- }
- return 0;
- }
- stock ActualizarCHAT(playerid, text[], name[]){
- format(TDname[0],25,"%s",TDname[1]);
- format(TDname[1],25,"%s",TDname[2]);
- format(TDname[2],25,"%s",TDname[3]);
- format(TDname[3],25,"%s:",name);
- format(TDdata[0],100,"%s",TDdata[1]);
- format(TDdata[1],100,"%s",TDdata[2]);
- format(TDdata[2],100,"%s",TDdata[3]);
- format(TDdata[3],100,"%s",text);
- TextDrawSetString(TDchat[4][0], TDname[0]);
- TextDrawSetString(TDchat[4][1], TDname[1]);
- TextDrawSetString(TDchat[4][2], TDname[2]);
- TextDrawSetString(TDchat[4][3], TDname[3]);
- TextDrawSetString(TDchat[5][0], TDdata[0]);
- TextDrawSetString(TDchat[5][1], TDdata[1]);
- TextDrawSetString(TDchat[5][2], TDdata[2]);
- TextDrawSetString(TDchat[5][3], TDdata[3]);
- PlayerPlaySound(playerid, 21000, 0.0, 0.0, 0.0);
- for(new msg=0; msg<40; msg++)SendClientMessage(playerid,-1," ");
- }
- public OnPlayerSpawn(playerid){
- for(new msg=0; msg<40; msg++)SendClientMessage(playerid,-1," ");
- for(new index=0; index<4; index++){
- for(new idx=0; idx<6; idx++){
- TextDrawHideForPlayer(playerid,TDchat[idx][index]);
- TextDrawShowForPlayer(playerid,TDchat[idx][index]);
- }
- }
- return true;
- }
- public OnFilterScriptInit(){
- for(new index=0; index<4; index++){
- for(new idx=0; idx<6; idx++){
- TextDrawDestroy(TDchat[idx][index]);
- if(index > 0){
- TDchat[0][index] = TextDrawCreate(62.000000, 12.437500+37*index, "usebox");
- TDchat[1][index] = TextDrawCreate(29.500000, 12.437500+37*index, "usebox");
- TDchat[2][index] = TextDrawCreate(43.500000, 7.437500+37*index, "!");
- TDchat[3][index] = TextDrawCreate(344.500000, 12.437500+37*index, "usebox");
- TDchat[4][index] = TextDrawCreate(73.500000, 17.062500+37*index, "_");//name
- TDchat[5][index] = TextDrawCreate(73.500000, 27.562500+37*index, "_");//text (max 96 caract)
- }else{
- TDchat[0][index] = TextDrawCreate(62.000000, 12.437500, "usebox");
- TDchat[1][index] = TextDrawCreate(29.500000, 12.437500, "usebox");
- TDchat[2][index] = TextDrawCreate(43.500000, 7.437500, "!");
- TDchat[3][index] = TextDrawCreate(344.500000, 12.437500, "usebox");
- TDchat[4][index] = TextDrawCreate(73.500000, 17.062500, "_");//name
- TDchat[5][index] = TextDrawCreate(73.500000, 27.562500, "_");//text (max 96 caract)
- }
- TextDrawBoxColor(TDchat[1][index], COLORchat[index]);
- TextDrawColor(TDchat[2][index], COLORchat[index]);
- TextDrawColor(TDchat[4][index], COLORchat[index]);
- TextDrawLetterSize(TDchat[0][index], 0.000000, 3.523611);
- TextDrawTextSize(TDchat[0][index], 24.000000, 0.000000);
- TextDrawAlignment(TDchat[0][index], 1);
- TextDrawColor(TDchat[0][index], 0);
- TextDrawUseBox(TDchat[0][index], true);
- TextDrawBoxColor(TDchat[0][index], 102);
- TextDrawSetShadow(TDchat[0][index], 0);
- TextDrawSetOutline(TDchat[0][index], 0);
- TextDrawFont(TDchat[0][index], 0);
- TextDrawLetterSize(TDchat[1][index], 0.000000, 3.523611);
- TextDrawTextSize(TDchat[1][index], 24.500000, 0.000000);
- TextDrawAlignment(TDchat[1][index], 1);
- TextDrawColor(TDchat[1][index], 0);
- TextDrawUseBox(TDchat[1][index], true);
- TextDrawSetShadow(TDchat[1][index], 0);
- TextDrawSetOutline(TDchat[1][index], 0);
- TextDrawFont(TDchat[1][index], 0);
- TextDrawLetterSize(TDchat[2][index], 1.032499, 4.071875);
- TextDrawAlignment(TDchat[2][index], 2);
- TextDrawSetShadow(TDchat[2][index], 0);
- TextDrawSetOutline(TDchat[2][index], 1);
- TextDrawBackgroundColor(TDchat[2][index], 51);
- TextDrawFont(TDchat[2][index], 0);
- TextDrawSetProportional(TDchat[2][index], 1);
- TextDrawLetterSize(TDchat[3][index], 0.000000, 3.523611);
- TextDrawTextSize(TDchat[3][index], 60.500000, 0.000000);
- TextDrawAlignment(TDchat[3][index], 1);
- TextDrawColor(TDchat[3][index], 0);
- TextDrawUseBox(TDchat[3][index], true);
- TextDrawBoxColor(TDchat[3][index], 102);
- TextDrawSetShadow(TDchat[3][index], 0);
- TextDrawSetOutline(TDchat[3][index], 0);
- TextDrawFont(TDchat[3][index], 0);
- TextDrawLetterSize(TDchat[4][index], 0.177499, 1.337500);
- TextDrawAlignment(TDchat[4][index], 1);
- TextDrawSetShadow(TDchat[4][index], 0);
- TextDrawSetOutline(TDchat[4][index], 1);
- TextDrawBackgroundColor(TDchat[4][index], 51);
- TextDrawFont(TDchat[4][index], 1);
- TextDrawSetProportional(TDchat[4][index], 1);
- TextDrawLetterSize(TDchat[5][index], 0.155000, 1.249999);
- TextDrawAlignment(TDchat[5][index], 1);
- TextDrawColor(TDchat[5][index], -1);
- TextDrawSetShadow(TDchat[5][index], 0);
- TextDrawSetOutline(TDchat[5][index], 1);
- TextDrawBackgroundColor(TDchat[5][index], 51);
- TextDrawFont(TDchat[5][index], 1);
- TextDrawSetProportional(TDchat[5][index], 1);
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement