Liberty Unleashed

Scripting => Script Help => Topic started by: Maximom on June 09, 2013, 07:57:14 pm

Title: mute script
Post by: Maximom on June 09, 2013, 07:57:14 pm
how i can do the mute script
Title: Re: mute script
Post by: Thijn on June 10, 2013, 02:06:45 pm
http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/Muted (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/Muted)

Then on playerchat check if the player is muted, and return 0;
Title: Re: mute script
Post by: Maximom on June 13, 2013, 05:47:03 pm
[url]http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/Muted[/url] ([url]http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/Muted[/url])

Then on playerchat check if the player is muted, and return 0;
  what? OnPlayer.??? i dont know the code of that Retrun0;

I removed the shadow, it's unreadable. Don't use it.
- Thijn
Title: Re: mute script
Post by: Thijn on June 14, 2013, 06:09:39 pm
In your command, you set the player.Muted to true.
Then on your onPlayerChat event, add an if to see if the player is muted ( if( player.Muted ) ).
If he is: return 0;
If he isn't: Do nothing really.