GetPlayerBlurLevel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function changeBlurLevel(playerSource)
function changeBlurLevel(playerSource)
     blur = getPlayerBlurLevel(playerSource)
     local blur = getPlayerBlurLevel(playerSource)
     outputChatBox("Blur level:" .. blur, playerSource)
     outputChatBox("Blur level: " .. blur, playerSource)
end
end
addCommandHandler("blurlevel", changeBlurLevel)
addCommandHandler("blurlevel", changeBlurLevel)
-- Typ /blurlevel to check the blur level
-- Type /blurlevel to check the blur level
</syntaxhighlight>
</syntaxhighlight>

Revision as of 22:46, 16 February 2008

Syntax

int getPlayerBlurLevel ( player thePlayer )

Example

This will show the blur level to the player.

function changeBlurLevel(playerSource)
    local blur = getPlayerBlurLevel(playerSource)
    outputChatBox("Blur level: " .. blur, playerSource)
end
addCommandHandler("blurlevel", changeBlurLevel)
-- Type /blurlevel to check the blur level