Currently, there is no way to check/change certain properties of a player.
*
IsPlayerActive(player)
Returns "true" if the specified player is still present in the game, returns "false" otherwise.
SetPlayerActive(player)
Makes a player return/join in the game.
You can give him one hero, one town, etc.
Or make he have only one hero, but it can stay longer than 7 days on the map before losing.
IsPlayerControlledByAI(player)
Returns "true" if the specified player is controlled by an AI player, returns "false" otherwise.
YouLose(player)
The player loses the scenario.
YouWin(player)
The player wins the scenario.
MakeAlliance(p1, p2)
Makes an alliance between the player number "p1" and the player number "p2".
BreakAlliance(p1, p2)
Breaks an alliance between the player number "p1" and the player number "p2".