G.Player
From GMod Wiki
Revision as of 04:39, 14 October 2010 by Unrealomega (Talk | contribs)
| Function | |
| Syntax |
Player( Integer userID ) Where is this used? |
| Description: | |
| Returns the player object for index+1 | |
| Returns: | Player |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.Player]G.Player [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prints the Player with the userID of 2 in the server. Note that Player(2) == Entity(1) |
|---|---|
| Used on | |
| Code | print(Player(2)) |
| Output | Player [1][Playername] |
Additional Notes
- If a userID that isn't in use is given, this function will return NULL.