Code:
public cmd_glow(id, level, cid)
{
if (!cmd_access(id, level, cid, 6))
return PLUGIN_HANDLED
new szName[32], rgbColor[3][3]
read_argv(1, szName, charsmax(szName))
read_argv(2, rgbColor[0], 3)
read_argv(3, rgbColor[1], 3)
read_argv(4, rgbColor[2], 3)
new idGlower = cmd_target(id, szName, CMDTARGET_ALLOW_SELF)
glow_player(
idGlower,
{ str_to_num(rgbColor[0]), str_to_num(rgbColor[1]), str_to_num(rgbColor[2]) },
50
)
return PLUGIN_HANDLED
}
I'm not sure how to send an array over to my function other than making each RGB value a separate int, here's my glow_player function:
Code:
stock glow_player(id, rgb[3], glowAmount = 40)
{
set_user_rendering(id, kRenderFxGlowShell, rgb[0], rgb[1], rgb[2], kRenderNormal, glowAmount)
console_print(0, "Set glowing to id %i with glow amount %i", id, glowAmount)
}
I'm sure there's something simple I'm missing, and thanks for the help in advance