Bullet DMG

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
Post Reply
vFl
Jau po truputį tampa savu
Posts: 118
Joined: 2015 May 25 13:59
Skype: oleglucija

Bullet DMG

Post by vFl »

Sveiki visi gal galite padaryti kad jeigu tau nuima HP kad rodytu raudonai su minusu ir jeigu tu padarei žala tai melynų?

Code: Select all

/*   Copyright © 2009, ConnorMcLeod    Bullet Damage is free software;   you can redistribute it and/or modify it under the terms of the   GNU General Public License as published by the Free Software Foundation.    This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.    You should have received a copy of the GNU General Public License   along with Bullet Damage; if not, write to the   Free Software Foundation, Inc., 59 Temple Place - Suite 330,   Boston, MA 02111-1307, USA.*/ #include <amxmodx> #define PLUGIN "Bullet Damage"#define AUTHOR "ConnorMcLeod"#define VERSION "0.0.1" #define MAX_PLAYERS   32 new const Float:g_flCoords[][] = {   {0.50, 0.40},   {0.56, 0.44},   {0.60, 0.50},   {0.56, 0.56},   {0.50, 0.60},   {0.44, 0.56},   {0.40, 0.50},   {0.44, 0.44}} new g_iPlayerPos[MAX_PLAYERS+1] new g_iMaxPlayersnew g_pCvarEnabled public plugin_init(){   register_plugin(PLUGIN, VERSION, AUTHOR)    g_pCvarEnabled = register_cvar("bullet_damage", "1")    register_event("Damage", "Event_Damage", "b", "2>0", "3=0")    g_iMaxPlayers = get_maxplayers()} public Event_Damage( iVictim ){   if( get_pcvar_num(g_pCvarEnabled) && (read_data(4) || read_data(5) || read_data(6)) )   {      new id = get_user_attacker(iVictim)      if( (1 <= id <= g_iMaxPlayers) && is_user_connected(id) )      {         new iPos = ++g_iPlayerPos[id]         if( iPos == sizeof(g_flCoords) )         {            iPos = g_iPlayerPos[id] = 0         }         set_hudmessage(51, 153, 255, Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1)         show_hudmessage(id, "%d", read_data(2))      }   }}

peaksas
Naujokas apylinkėse
Posts: 3
Joined: 2016 Nov 06 03:06

Re: Bullet DMG

Post by peaksas »

Štai čia pluginas, kur tekstas bus rodomas raudonas, kai tave kažkas sužaloja, ir mėlynas, kai tave atakuoja, ir dar pora kitų spalvų pagal kitus aspektus (sprogimas, savęs žalojimas, įkaitų žalojimas ir panašiai). :) Gali lengvai pasikeisti redaguojant pluginą pagal save (RGB), jeigu nemoki, galiu padėti.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests