GetPlayerSimplestTask: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 14: | Line 14: | ||
==Example== | ==Example== | ||
This example prints the name of a players simplest task to the chat, when they use the " | This example prints the name of a players simplest task to the chat, when they use the "sTask" command. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function showSTask () | function showSTask () |
Revision as of 13:50, 29 July 2007
This function is used to get the name of a specified players current simplest task.
Syntax
string getPlayerSimplestTask ( player thePlayer )
Required Arguments
Returns
Returns a string representing the name of the player's simplest, active task.
Example
This example prints the name of a players simplest task to the chat, when they use the "sTask" command.
function showSTask () local thetask = getPlayerSimplestTask ( getLocalPlayer() ) outputChatBox ( getPlayerName ( getLocalPlayer() ) .. "'s simplest task is: " .. thetask ) end addCommandHandler ( "sTask", showSTask )
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState