Raised This Month: $32 Target: $400
 8% 

Teamspeak show users


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Zenith77 (33)
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 11-02-2007 , 14:16   Teamspeak show users
Reply With Quote #1

PHP Code:
/***
Simple teamspeak plugin by hackziner

[email protected]

cvars:
    ts_ip
    ts_virtual_server
    ts_superadmin
    ts_superadmin_password
    ts_connection_trigger  //text that triggers the connection to the server
Commands:
    /teamspeak online //show who is on the teamspeak server
    /teamspeak calladmin msg //send a text msg to the teamspeak server
    /teamspeak reset //reset request flag
    /ts_connection_trigger //connect to the ts server
***/ 
This plugin allows to get the list of people on a teamspeak server and send a text message. You can also launch teamspeak and connect it with your ingame nickname with a command.


The last version is ts03.sma


changelog:
03:
fix the unclosed connection bug
Attached Files
File Type: sma Get Plugin or Get Source (ts.sma - 3162 views - 3.5 KB)
File Type: sma Get Plugin or Get Source (ts02.sma - 2503 views - 4.6 KB)
File Type: sma Get Plugin or Get Source (ts03.sma - 2877 views - 4.6 KB)
__________________

Last edited by hackziner; 09-30-2008 at 14:52.
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 11-02-2007 , 15:18   Re: Teamspeak show users
Reply With Quote #2

Wow... Just wow.

Your work with sockets is incredible. Good job.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 11-02-2007 , 16:01   Re: Teamspeak show users
Reply With Quote #3

lol, Yeah nice work.

nicely Coded, and i will test it on my server when i get my teamspeak server back up.
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
FuZ!on
Senior Member
Join Date: Aug 2007
Old 11-02-2007 , 16:09   Re: Teamspeak show users
Reply With Quote #4

Wow. Too bad that I moved to vent. But, this plug in is awesome. Keep up the good work!
FuZ!on is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 11-03-2007 , 04:11   Re: Teamspeak show users
Reply With Quote #5

o man .. any way to get this to interact with ventrilo?

This rocks.

I would highly approve this one.
__________________

BigBaller is offline
nukey451
Member
Join Date: Sep 2006
Location: Köln
Old 11-03-2007 , 07:11   Re: Teamspeak show users
Reply With Quote #6

Maybe and e.G. | Bute its a Nice own Plugin | On Server Add

_____________________________________________ __________________________________

Leave or Ba$H # German Fun Clan # Male and Female Gaming 2oo6

www.lob-crew.com or www.leave-or-bash.de


Last edited by nukey451; 11-03-2007 at 08:21.
nukey451 is offline
Send a message via ICQ to nukey451
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 11-03-2007 , 07:30   Re: Teamspeak show users
Reply With Quote #7

Quote:
Your work with sockets is incredible. Good job.
It's more about protocole reading than sockets

Quote:
nicely Coded
o_O We have not the same notion of "nicely coded" ^^
Quote:
any way to get this to interact with ventrilo?
Quote:
Too bad that I moved to vent
Ventrilo protocol description is like god ... everybody know his name but nobody has never seen him ...

Example ? ==>

Quote:
Maybe a eG . ? Simple pls ?
Quote:
[On the cs server]
say /teamspeak online
TS online: player1,player2,player3,player4,
(Thought : I come We can do a match)
or
Quote:
[On the cs server]
say /teamspeak online
TS online: player1,player2,player3,
say Cool I want an admin for change the map
say /teamspeak calladmin change the map plz
say /teamspeak calladmin change the map plz
say /teamspeak calladmin change the map plz
say /teamspeak calladmin change the map plz
You've banned
__________________
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
nikerossxp
Junior Member
Join Date: Feb 2007
Location: Moscow, Russia
Old 11-03-2007 , 16:05   Re: Teamspeak show users
Reply With Quote #8

coool!!!
nikerossxp is offline
Send a message via ICQ to nikerossxp Send a message via MSN to nikerossxp Send a message via Yahoo to nikerossxp Send a message via Skype™ to nikerossxp
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 11-03-2007 , 18:15   Re: Teamspeak show users
Reply With Quote #9

PHP Code:
   register_cvar("ts_version",VERSION,FCVAR_SERVER)
    
register_cvar("ts_ip","192.168.0.69",FCVAR_SERVER)
    
register_cvar("ts_virtual_server","8767",FCVAR_SERVER)
    
register_cvar("ts_superadmin","superadmin")
    
register_cvar("ts_superadmin_password",""
ts_ip is the ip of your teamspeak server.
ts_virtual_server is the port of your virtual server.

In fact, teamspeak server is a soft that allow to create several virtual server. The id of a virtual server is the port, so each virtual server have a different port.

ts_superadmin, the superadmin username
ts_superadmin_password, superadmin password, you can find it in the server log.

If you don't set the superadmin password you'll be allowed to see who is online but not to send messages.
__________________
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-04-2007 , 01:55   Re: Teamspeak show users
Reply With Quote #10

Code looks acceptable. There's really only a few things I can comment on, most being trivial (code style, etc).

So this is approved, but I'd like to throw in said trivial matters below here:

You don't seem to like to use if/else statements, these actually have a purpose.

Code:
            if(request==1)                 {                 client_print(0,print_chat,"TS: Superadmin login OK")                 server_print("TS: Superadmin login OK")                 format(format_msg,64,"sel %s ^n",ts_virtual_server)                 socket_send(tcp_socket,format_msg,63)                 request=3                 }             if(request==3)                 {                 client_print(0,print_chat,"TS: Virtual server select OK")                 server_print("TS: Virtual server select OK")                 request=0                 }             if(request==4)                 {                 client_print(0,print_chat,"TS: msg send to ts OK")                 server_print("TS: msg send to ts OK")                 request=0                 }

In code like this, use if/else statements or even a switch statement. But once again this is trivial, just be sure to keep it in mind later (it actually helps in with code efficiency).

edit
Also, I strongly recommend setting the FCVAR_PROTECTED flag for the ts_superadmin_password cvar ;).
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred

Last edited by Zenith77; 11-04-2007 at 01:01.
Zenith77 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode