GetRandomPlayer: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 12: Line 12:
  player = [[GetRandomPlayer]] ( )
  player = [[GetRandomPlayer]] ( )
  [[serverChat]] ( [[GetPlayerName]] ( player ) , " is now the fugitive!" )
  [[serverChat]] ( [[GetPlayerName]] ( player ) , " is now the fugitive!" )
Edit to fix bad links.

Revision as of 10:56, 26 March 2006

Description

This function returns a random player object. 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

player = GetRandomPlayer ( )
serverChat ( GetPlayerName ( player ) , " is now the fugitive!" )