IsPlayerVoiceEnabled

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
IsPlayerVoiceEnabled

Type: Function
Context: Server
Introduced: v1.0

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

See also