It is in a mod ESF, so i tested that code and it worked, it changed the sprite color to red.
However i would like to understand how can you make this to work the way i described, ie. i write "amx_power" into the console and it changes only my sprite color. Atm it affects every player on the server automatically..