Liberty Unleashed
Scripting => Script Help => Topic started by: Maximom on June 09, 2013, 07:57:14 pm
-
how i can do the mute script
-
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;
-
[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
-
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.