Hook the
player_spawn event to find out when the player spawns, then use
TF2_AddCondition() to apply the effect.
If you want players to configure which condition they spawn with, then you probably want to create some sort of command like
sm_spawncond, parse their desired condition, and store it in a plugin-scoped array:
Code:
TFCond g_DesiredConditions[MAXPLAYERS+1];
__________________