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 <streamer> //http://forum.sa-mp.com/showthread.php?t=102865
- // sample image: ---> http://imagizer.imageshack.us/v2/800x600q90/198/ig7t.png
- #define NAME_SERVER "[City Troll]"
- #define COLOR_NICK "{ECE700}"
- #define COLOR_ID "{BB00FF}"
- #define COLOR_SERVER "{FF0000}"
- #define HEALTH_LLENA "{FF0000}" //rojo claro
- #define HEALTH_VACIA "{AD0000}" //rojo oscuro
- #define ARMOUR_LLENA "{FFFFFF}" //blanco
- #define ARMOUR_VACIA "{8F8B91}" //gris oscuro
- #define DISTANCE_BARRA 10.0
- new Text3D:Barra3D[MAX_PLAYERS];
- public OnFilterScriptInit(){
- ShowNameTags(false);
- return true;
- }
- public OnPlayerSpawn(playerid){
- if(!IsPlayerConnected(playerid)) return true;
- if(IsPlayerAdmin(playerid)) return true;
- if(IsPlayerNPC(playerid)) return true;
- DestroyDynamic3DTextLabel(Barra3D[playerid]);
- Barra3D[playerid]=CreateDynamic3DTextLabel("",-1,0.0, 0.0, 0.35,DISTANCE_BARRA,playerid);
- return true;
- }
- public OnPlayerDisconnect(playerid, reason){
- DestroyDynamic3DTextLabel(Barra3D[playerid]);
- return true;
- }
- public OnPlayerDeath(playerid, killerid, reason){
- DestroyDynamic3DTextLabel(Barra3D[playerid]);
- return true;
- }
- public OnPlayerUpdate(playerid){
- if(!IsPlayerConnected(playerid)) return true;
- if(IsPlayerAdmin(playerid)) return true;
- if(IsPlayerNPC(playerid)) return true;
- new data[130],barra[2][50],Float:health,Float:armour,name[24];
- GetPlayerHealth(playerid,health);
- GetPlayerArmour(playerid,armour);
- GetPlayerName(playerid,name,sizeof(name));
- if(health == 100) barra[0] = ""HEALTH_LLENA"IIIIIIIIIIIIIIIIIIII";
- else if(health >= 90) barra[0] = ""HEALTH_LLENA"IIIIIIIIIIIIIIIIII"HEALTH_VACIA"II";
- else if(health >= 80) barra[0] = ""HEALTH_LLENA"IIIIIIIIIIIIIIII"HEALTH_VACIA"IIII";
- else if(health >= 70) barra[0] = ""HEALTH_LLENA"IIIIIIIIIIIIII"HEALTH_VACIA"IIIIII";
- else if(health >= 60) barra[0] = ""HEALTH_LLENA"IIIIIIIIIIII"HEALTH_VACIA"IIIIIIII";
- else if(health >= 50) barra[0] = ""HEALTH_LLENA"IIIIIIIIII"HEALTH_VACIA"IIIIIIIIII";
- else if(health >= 40) barra[0] = ""HEALTH_LLENA"IIIIIIII"HEALTH_VACIA"IIIIIIIIIIII";
- else if(health >= 30) barra[0] = ""HEALTH_LLENA"IIIIII"HEALTH_VACIA"IIIIIIIIIIIIII";
- else if(health >= 25) barra[0] = ""HEALTH_LLENA"IIII"HEALTH_VACIA"IIIIIIIIIIIIIIII";
- else if(health < 25) barra[0] = ""HEALTH_VACIA"IIIIIIIIIIIIIIIIIIII";
- if(armour == 100) barra[1] = ""ARMOUR_LLENA"IIIIIIIIIIIIIIIIIIII";
- else if(armour >= 90) barra[1] = ""ARMOUR_LLENA"IIIIIIIIIIIIIIIIII"ARMOUR_VACIA"II";
- else if(armour >= 80) barra[1] = ""ARMOUR_LLENA"IIIIIIIIIIIIIIII"ARMOUR_VACIA"IIII";
- else if(armour >= 70) barra[1] = ""ARMOUR_LLENA"IIIIIIIIIIIIII"ARMOUR_VACIA"IIIIII";
- else if(armour >= 60) barra[1] = ""ARMOUR_LLENA"IIIIIIIIIIII"ARMOUR_VACIA"IIIIIIII";
- else if(armour >= 50) barra[1] = ""ARMOUR_LLENA"IIIIIIIIII"ARMOUR_VACIA"IIIIIIIIII";
- else if(armour >= 40) barra[1] = ""ARMOUR_LLENA"IIIIIIII"ARMOUR_VACIA"IIIIIIIIIIII";
- else if(armour >= 30) barra[1] = ""ARMOUR_LLENA"IIIIII"ARMOUR_VACIA"IIIIIIIIIIIIII";
- else if(armour >= 25) barra[1] = ""ARMOUR_LLENA"IIII"ARMOUR_VACIA"IIIIIIIIIIIIIIII";
- else if(armour < 25) barra[1] = ""ARMOUR_LLENA"IIIIIIIIIIIIIIIIIIII";
- format(data,sizeof(data),""COLOR_SERVER""NAME_SERVER"\n"COLOR_NICK"%s"COLOR_ID"[%d]\n%s\n%s",name,playerid,barra[1],barra[0]);
- UpdateDynamic3DTextLabelText(Barra3D[playerid],-1,data);
- return true;
- }
- /*
- * ## 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