Advertisement
OtaconEvil

[FS] Fácil, Nuevo 'Tag Name' By OTACON

Jan 8th, 2014
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.11 KB | None | 0 0
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *                Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *                  Publicación de este FILTERSCRIPT sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                        FULLY spaces Theft Credit or
  33.     *                 Publication of this FILTERSCRIPT without my permission.
  34. */
  35. #include <a_samp>
  36. #include <streamer> //http://forum.sa-mp.com/showthread.php?t=102865
  37. // sample image 1: ---> http://img41.imageshack.us/img41/6592/bbaq.png
  38. // sample image 2: ---> http://img41.imageshack.us/img41/1251/olql.png
  39.  
  40. #define DISTANCE_TAG   10.0
  41. #define NAME_SERVER    "[City Troll]"
  42. #define COLOR_NICK     "{ECE700}"
  43. #define COLOR_ID       "{BB00FF}"
  44. #define COLOR_SERVER   "{FF0000}"
  45. new Text3D:NewTagName[MAX_PLAYERS];
  46.  
  47. public OnFilterScriptInit(){
  48.     ShowNameTags(false);
  49.     return true;
  50. }
  51. public OnPlayerText(playerid, text[]){
  52.     //SetPlayerChatBubble(playerid,text,-1,DISTANCE_TAG,15*1000);
  53.     return true;
  54. }
  55. public OnPlayerSpawn(playerid){
  56.     if(!IsPlayerConnected(playerid)) return true;
  57.     if(IsPlayerAdmin(playerid)) return true;
  58.     if(IsPlayerNPC(playerid)) return true;
  59.     DestroyDynamic3DTextLabel(NewTagName[playerid]);
  60.     NewTagName[playerid]=CreateDynamic3DTextLabel("",-1,0.0, 0.0, 0.45,DISTANCE_TAG,playerid);
  61.     return true;
  62. }
  63. public OnPlayerDisconnect(playerid, reason){
  64.     DestroyDynamic3DTextLabel(NewTagName[playerid]);
  65.     return true;
  66. }
  67. public OnPlayerUpdate(playerid){
  68.     if(!IsPlayerConnected(playerid)) return true;
  69.     if(IsPlayerAdmin(playerid)) return true;
  70.     if(IsPlayerNPC(playerid)) return true;
  71.     new data[90],name[25];
  72.     GetPlayerName(playerid,name,sizeof(name));
  73.     format(data,sizeof(data),""COLOR_SERVER""NAME_SERVER"\n"COLOR_NICK"%s"COLOR_ID"[%d]",name,playerid);
  74.     UpdateDynamic3DTextLabelText(NewTagName[playerid],-1,data);
  75.     return true;
  76. }
  77. /*
  78.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  79.     *
  80.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  81.     * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  82.     *
  83.     * Codigo Creado Por OTACON
  84.     *
  85.     * CREDITOS:
  86.     *     OTACON: Realizacion y Idea de creacion del code.
  87.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  88.     *
  89.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  90.     *
  91.     *                Prohibido TOTALMENTE el Robo de Créditos o la
  92.     *                  Publicación de este FILTERSCRIPT sin Mi Permiso.
  93. */
  94. /*
  95.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  96.     *
  97.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  98.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  99.     *
  100.     * Code Created By OTACON
  101.     *
  102.     * CREDITS:
  103.     *     OTACON: Idea Making and code creation.
  104.     *     YOUR: Modification freely respecting the above ;).
  105.     *
  106.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  107.     *
  108.     *                        FULLY spaces Theft Credit or
  109.     *                 Publication of this FILTERSCRIPT without my permission.
  110. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement