Message Manager
C4Messages.h

Player::GetPlayerKey

Returns the key associated with a player.
Prototype

PlayerKey GetPlayerKey(voidconst;

Description
The GetPlayerKey function returns the unique ID associated with a player. The player representing the server always has the special key kPlayerServer.
See Also
MessageMgr::GetPlayer