Author Topic: mute script  (Read 5815 times)

Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
mute script
« on: June 09, 2013, 07:57:14 pm »
how i can do the mute script
« Last Edit: June 15, 2013, 11:53:55 pm by SugarD »
C.r.c member

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: mute script
« Reply #1 on: June 10, 2013, 02:06:45 pm »
http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/Muted

Then on playerchat check if the player is muted, and return 0;

Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
Re: mute script
« Reply #2 on: June 13, 2013, 05:47:03 pm »
http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/Muted

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
« Last Edit: June 14, 2013, 06:08:24 pm by Thijn »
C.r.c member

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: mute script
« Reply #3 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.

 

© Liberty Unleashed Team.