GetPlayerSimplestTask: Difference between revisions
Jump to navigation
Jump to search
(fixed silly example mistake) |
No edit summary |
||
Line 18: | Line 18: | ||
addCommandHandler ( "simplest_task", "task" ) | addCommandHandler ( "simplest_task", "task" ) | ||
function task ( source, key ) | function task ( source, key ) | ||
thetask = getPlayerSimplestTask ( source ) | |||
outputChatBox ( getClientName ( source ) .. "'s simplest task is: " .. | outputChatBox ( getClientName ( source ) .. "'s simplest task is: " .. thetask ) | ||
end | end | ||
Revision as of 18:20, 12 November 2006
This function is used to get the name of a specified players current simplest task.
Syntax
string getPlayerSimplestTask ( player thePlayer )
Required Arguments
- thePlayer: The player whose task you want to retrieve.
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 "simplest_task" command
addCommandHandler ( "simplest_task", "task" ) function task ( source, key ) thetask = getPlayerSimplestTask ( source ) outputChatBox ( getClientName ( source ) .. "'s simplest task is: " .. thetask ) end
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