bullet damage

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

bullet damage

Post by laimiukas3 »

sveiki gal kas galetu padaryti arba pasakyti kaip padaryti ivairiom color buled demage nes cia tik melinai o as noreciau kad vis saudant spalva keistusi aciu :)
kaip suprantu mano manymu cia kazkaip kazka reike keisti

Code: Select all

set_hudmessage(0, 40, 80, 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))        }

Code: Select all

#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(0, 40, 80, 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))        }    }}
Image
Image
Image

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: bullet damage

Post by beast »

Code: Select all

set_hudmessage(random_num(40, 255), random_num(40, 255), random_num(40, 255), Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests