Player.SprintDisable
From GMod Wiki
Revision as of 13:43, 5 July 2010 by XKillerBoy (Talk | contribs)
Function | |
Syntax | Player:SprintDisable( ) |
Description: | |
Forbids the player from sprinting. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SprintDisable]Player.SprintDisable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Forbids everyone from sprinting. |
---|---|
Used on | |
Code | for i, ply in pairs(player.GetAll()) do if (ply:IsValid()) then ply:SprintDisable() end end |
Output | N/A |
Additional Notes
- Both SprintEnable and SprintDisable functions are broken.