GetRandomPlayer

From Multi Theft Auto: Wiki
Revision as of 17:27, 25 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 ( 1 )
serverChat  ( GetPlayerName ( player ) , " is now the fugitive!" )