GetRandomPlayer: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Black Dragon (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{server function}} | |||
This function returns a random [[player]]. It is useful for assigning objectives to random players in a Manhunt mode, for example. | This function returns a random [[player]]. It is useful for assigning objectives to random players in a Manhunt mode, for example. | ||
Revision as of 11:27, 11 August 2007
This function returns a random player. It is useful for assigning objectives to random players in a Manhunt mode, for example.
Syntax
player getRandomPlayer ( )
Required Arguments
This function has no arguments.
Example
This code outputs a random's player name.
randomPlayer = getRandomPlayer ( ) outputChatBox ( getClientName ( randomPlayer ).." is now the fugitive!" )
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState