Player.SendHint

From GMod Wiki

Revision as of 03:33, 27 May 2010 by NicatronTg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Gamemode Function: Player.SendHint
Player.SendHint is a function that is defined in the Sandbox Gamemode and its derivatives.
Function
Syntax Player:SendHint( String Message, Number delay ( In seconds before displayed ) )
Description:
Prints a message to user in a hint box.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SendHint]Player.SendHint [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionSends a hint to everyone in the server
Used onNewerServer.png
Code
for k,ply in pairs(player.GetAll()) do
    ply:SendHint( "This is a hint!",5)
end
OutputShows everyone a hint with the text "This is a hint!"


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox