IsPlayerVoiceEnabled: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | <syntaxhighlight lang="Lua> | ||
if IsPlayerVoiceEnabled(playerid) then | |||
AddPlayerChat(playerid, "You have voice chat enabled.") | |||
end | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template: | {{Template:VoiceFunctions}} |
Latest revision as of 06:04, 23 November 2019
Description
Check if the specified player has voice chat enabled or not.
Syntax
IsPlayerVoiceEnabled(playerid)
Parameters
- playerid
The player identifier.
Return Value
- Returns true on success.
Example
if IsPlayerVoiceEnabled(playerid) then
AddPlayerChat(playerid, "You have voice chat enabled.")
end