Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 7 of 7
  1. #1
    Join Date
    August 2011
    Posts
    2

    [Request] Script for sending a poke globally or to a defined user group

    [Request] Script for sending a poke globally or to a defined user group

    I've seen this on a TS server before, so I know it is out there somewhere. A poke that gets sent globally or to a defined user group. Anyone know where I could find it?

  2. #2
    Join Date
    March 2010
    Location
    Germany
    Posts
    114
    If you have a bit of .net or php knowledge, you can realize sth. like that with one of the existing frameworks. AFAIK there is currently no out-of-the-box script to do that.

  3. #3
    Join Date
    May 2011
    Location
    United States
    Posts
    33
    I know a bit of .net

    This is a very good Idea, and will keep me busy
    I'll do it.

    Give me a few days, and I'll see what I can do.

    Are you looking for a script or a program??

  4. #4
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    If you're searching for a PHP script, this can be done with a few lines:

    PHP Code:
    try
    {
      
    $sgroup TeamSpeak3::factory("serverquery://user:[email protected]:10011/?server_port=9987")->serverGroupGetByName("Server Admin");

      foreach(
    $sgroup as $member)
      {
        
    $member->poke("Hello World!");
      }
    }
    catch(
    Exception $e)
    {
      die(
    "ERROR, " $e->getMessage());

    Have fun!

  5. #5
    Join Date
    March 2010
    Location
    Germany
    Posts
    114
    And if you are searching for a C# (.net) example, here we go
    Last edited by Maxe___; August 30th, 2011 at 11:25 AM.

  6. #6
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Quote Originally Posted by Maxe___ View Post
    And if you are searching for a C# (.net) example, here we go
    I don't know C#, but I've noticed this line:

    Code:
    if (cle.ClientChannelGroupId == groupId || cle.ServerGroups.Contains(Convert.ToUInt32(groupId)))
    If groupId is 1 you'll send a poke to all members of group 10, 11, 12, etc... basically to each and every group ID containing a 1. Or am I missing something? Is cle.ServerGroups an array?

  7. #7
    Join Date
    March 2010
    Location
    Germany
    Posts
    114
    cle.ServerGroups is a List (Array) of uints containing the ids of the servergroups. In my opinion it should work.

    See: http://msdn.microsoft.com/en-us/library/bhkz42b3.aspx

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. (Request) - Script for poke everyone and lot of times
    By Artmania in forum Client Plugins / Lua Scripts
    Replies: 10
    Last Post: April 28th, 2014, 07:34 PM
  2. Globally muted server group problem
    By zenon49 in forum Permission System
    Replies: 2
    Last Post: March 7th, 2014, 11:52 AM
  3. [Request] LUA script to pm specific s group
    By Viziss in forum Client Plugins / Lua Scripts
    Replies: 1
    Last Post: November 8th, 2012, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •