Global/Player

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{{Function
+
{{Func
| Name = Player
+
|Name=Player
| Namespace = [[Global]]
+
|Parent=Global
| Realm = Shared
+
|Description=Returns the player with the matching player index.
 +
|Realm=Shared
 +
|IsClass=No
 
}}
 
}}
 
+
{{Arg
{{Syntax
+
|type=number
| Name = Player
+
|name=playerIndex
| Description = Returns the player with the matching player index.
+
|desc=The player index.
| Returns = {{Return|Player|ply}}
+
 
+
| Arg1Name = playerIndex
+
| Arg1Type = number
+
| Arg1Req = false
+
| Arg1Desc = The player index.
+
| Arg1Default = -1
+
 
}}
 
}}

Revision as of 16:22, 26 February 2013

 Player( )

Description

Returns the player with the matching player index.

Arguments

number playerIndex

The player index.
Personal tools
Navigation