Hello, I wanted you to help me guys, please! I need to add in this plugin player glow and aura, not
PHP Code:
//set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT) // light aura
, because I can't costumize its radiuss and color, but another one with glow, if I remember correctly, than it's D_LIGHT or smth... Can you help me adding in this plugin a light aura with glow and with custom settings, so I can change its color and radiuss! And one more thing I want, it's : to see VIP in scoreboard with tag : "VIP", can you add it, please? PLEASE HELP ME!
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <fakemeta>
#include <zombieplague>
/*
Player should have flag Q in users.ini for vip 1
Player should have flag R in users.ini for vip 2
Each VIP 1 player will receive on each round:
500 hp
150 armour
1/2 gravity
semi-visibility
Huge light aura
Word BOMB next to name in scoreboard
--------------------------------------------
Each VIP 2 player will receive on each round:
400 hp
120 armour
70% of gravity
*/
#define VIP1_FLAG ADMIN_LEVEL_E
#define VIP2_FLAG ADMIN_LEVEL_F
enum
{
SCOREATTRIB_ARG_PLAYERID = 1,
SCOREATTRIB_ARG_FLAGS
};
enum ( <<= 1 )
{
SCOREATTRIB_FLAG_NONE = 0,
SCOREATTRIB_FLAG_DEAD = 1,
SCOREATTRIB_FLAG_BOMB,
SCOREATTRIB_FLAG_VIP
};
public plugin_init()
{
register_plugin( "[ZP] Addon: VIP1&2", "1.0", "fiendshard" );
RegisterHam( Ham_Spawn, "player", "fwdPlayerSpawn", 1 );
}
public fwdPlayerSpawn(id)
{
if (is_user_alive(id) && (get_user_flags(id) & VIP1_FLAG))
{
set_user_health(id, 650) // hp
set_user_armor(id, 350) // armour
set_user_gravity(id, 0.30) // gravity
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,127) // semi-visibility
//set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT) // light aura
}
if (is_user_alive(id) && (get_user_flags(id) & VIP2_FLAG))
{
set_user_health(id, 500) // hp
set_user_armor(id, 175) // armour
set_user_gravity(id, 0.50) // gravity
}
return HAM_IGNORED
}
public client_putinserver(id)
{
if ((get_user_flags(id) & VIP1_FLAG))
{
zp_set_user_ammo_packs(id, 20)
}
if ((get_user_flags(id) & VIP2_FLAG))
{
zp_set_user_ammo_packs(id, 15)
}
return PLUGIN_HANDLED;
}
public MessageScoreAttrib(iMsgId, iDest, iReceiver)
{
new iPlayer = get_msg_arg_int(SCOREATTRIB_ARG_PLAYERID);
if(access(iPlayer, VIP1_FLAG))
{
set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_BOMB);
}
}