Jump to content

Mute function


#Paper

Recommended Posts

Posted

This fuction don't unmute the source player...

[b]All in server-side:[/b] 
  
function unmutep () 
setPlayerMuted(source, false) 
outputChatBox ("You can talk again!", source) 
end 
------------------- 
setTimer( unmutep,30000, 1) 

Posted

your function is triggered by timer, so "source" is not passed to it. so you need to pass it in arguments:

function unmutep(player) 
  setPlayerMuted(player, false) 
  outputChatBox("You can talk again!", player) 
end 
------------------- 
setTimer( unmutep, 30000, 1, player) -- player must be defined here and must be a player element you wish to unmute 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...