Est SetPlayerColor

From EventScripts Community Encyclopedia
Syntax: est_SetPlayerColor <identifier> <red> <green> <blue> <alpha> [color weapons]
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Sets the players colors

Parameters

  • identifier - See Est_PlayerSelection for player selection help
  • red - Red(0-255)
  • green - Green(0-255)
  • blue - Blue(0-255)
  • alpha - alpha-transparent(0-255)
  • color weapons - If set to 1 the players weapons will also change color

Example


event player_spawn
{
	// Changes the color and alpha levels to 64
	es est_SetPlayerColor event_var(userid) 64 128 32 64 1
	// Change the color back to 255 after 5 seconds
	es_delayed 5 est_SetPlayerColor #a!d 255 255 255 255 0
}

Notes

  • Setting alpha won't set all current player's weapons to this alpha, only weapon he is holding

See Also

blog comments powered by Disqus