Quote:
|
Originally Posted by Zenith77
I know id is a player, or else i wouldnt be in the game :/ .....
|
This is one of the functions ( all the others are the same, just modified to produce diff results... )
Code:
public cmdHudPurple(id) {
if( !get_cvar_num("sv_glow") ) {
client_print(id, print_chat, "[AMXX] Sorry, GAIO (Glow All in One) is disabled!")
return PLUGIN_HANDLED
}
if( g_GlowHudColor[id] == GLOW_PURPLE) {
client_print(id, print_chat, "[AMXX] You are already have a purple hud!" )
return PLUGIN_HANDLED
}
client_print(id, print_chat, "[AMXX] Your hud is now purple!" )
message_begin(MSG_ONE, g_msgFade, {0,0,0}, id)
write_short(1<<0) // fade lasts this long duration
write_short(1<<0) // fade lasts this long hold time
write_short(1<<2) // fade type HOLD
write_byte(170) // fade red
write_byte(0) // fade green
write_byte(128) // fade blue
write_byte(100) // fade alpha
message_end()
g_GlowHudColor[id] = GLOW_PURPLE
g_GlowHudCustomColor[id][0] = 170
g_GlowHudCustomColor[id][1] = 0
g_GlowHudCustomColor[id][2] = 128
return PLUGIN_HANDLED
}
__________________