Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- |||||||| || || |||||| |||||| ||||||||||| |||||| || |||||||||||| ||||||||
- || || || || || || || || || || || || || ||
- || || || || || || || || || || || || || || || ||
- || || || || || || || || || || || || || || || ||
- || || || || || |||| || || || || || || || |||||||||||
- || || || || || || ||||||||| || || || || || || ||
- || || || || || || || || || || || || || ||
- || || || || || || || || || || || || || ||
- || || || || || || || || || || || || || || ||
- |||||||| || || || || ||||||||||| || |||| |||||||||||| || ||
- || ||
- | |
- || ||
- ||||||||||||||||||||
- */
- #include < a_samp >
- new Text:Atingir[MAX_PLAYERS];
- new Text:Atingido[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- for(new i; i < MAX_PLAYERS; ++i)
- {
- Atingir[i] = TextDrawCreate(168.000000,319.000000, " ");
- TextDrawColor(Atingir[i], 0x33FF10AA);
- TextDrawBackgroundColor(Atingir[i], 255);
- TextDrawFont(Atingir[i], 2);
- TextDrawSetProportional(Atingir[i], 1);
- TextDrawLetterSize(Atingir[i], 1.000000,2.699999);
- TextDrawSetOutline(Atingir[i], 1);
- TextDrawAlignment(Atingir[i], 2);
- Atingido[i] = TextDrawCreate(168.000000,319.000000, " ");
- TextDrawColor(Atingido[i], 0xFF0026AA);
- TextDrawBackgroundColor(Atingido[i], 255);
- TextDrawFont(Atingido[i], 2);
- TextDrawSetProportional(Atingido[i], 1);
- TextDrawLetterSize(Atingido[i], 1.000000,2.699999);
- TextDrawSetOutline(Atingido[i], 1);
- TextDrawAlignment(Atingido[i], 2);
- }
- return 1;
- }
- main()
- {
- print(" _______________________________________");
- print("|---------------------------------------|");
- print("|»» Dano Textdraw + Info Tiro ««|");
- print("|»» DiiMeNoR Street ««|");
- print("| diimenor.1533 |");
- print("|---------------------------------------|");
- printf("%c", 7 );
- }
- forward OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid);
- public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
- {
- new DiiMeNoR[50];
- format(DiiMeNoR, 50, "DANO %.0f", amount);
- TextDrawSetString(Atingir[playerid], DiiMeNoR);
- TextDrawShowForPlayer(playerid, Atingir[playerid]);
- SetTimerEx("RemoveTextDraw", 2000, false, "i", playerid);
- return 1;
- }
- forward RemoveTextDraw(playerid);
- public RemoveTextDraw(playerid)
- {
- TextDrawHideForPlayer(playerid, Atingido[playerid]);
- TextDrawHideForPlayer(playerid, Atingir[playerid]);
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
- {
- new BODY_PART_HEAD, BODY_PART_TORSO, BODY_PART_RIGHT_ARM, BODY_PART_LEFT_ARM, BODY_PART_RIGHT_LEG, BODY_PART_LEFT_LEG, BODY_PART_GROIN;
- if(bodypart == BODY_PART_HEAD)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido na cabeça por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- SetPlayerHealth(playerid, 0);
- }
- if(bodypart == BODY_PART_TORSO)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido no peitoral por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- }
- if(bodypart == BODY_PART_GROIN)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido na virilha por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- }
- if(bodypart == BODY_PART_RIGHT_ARM)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido no braço direito por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- }
- if(bodypart == BODY_PART_LEFT_ARM)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido no braço esquerdo por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- }
- if(bodypart == BODY_PART_RIGHT_LEG)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido na perna direita por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- }
- if(bodypart == BODY_PART_LEFT_LEG)
- {
- new Atirador[MAX_PLAYER_NAME],DiiMeNoR[120];
- GetPlayerName(issuerid, Atirador, sizeof (Atirador));
- format(DiiMeNoR, sizeof(DiiMeNoR), "[DiiMeNoR] Você foi atingido na perna esquerda por um disparo de %s", Atirador);
- SendClientMessage(playerid, -1, DiiMeNoR);
- }
- new DiiMeNoR[50];
- format(DiiMeNoR, 50, "DANO %.0f", amount);
- TextDrawSetString(Atingido[playerid], DiiMeNoR);
- TextDrawShowForPlayer(playerid, Atingido[playerid]);
- SetTimerEx("RemoveTextDraw", 2000, false, "i", playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement