SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/12/2017, 08:57 PM   #1
Suttix
Big Clucker
 
Join Date: Jul 2017
Posts: 63
Reputation: 3
Default TeamSpeak Connector

Hi.Does someone know how to use teamspeak connector by maddinator.If someone know how to get someone's nickname when he join a channel pls tell me or how to get someone's id by his name.Thanks!
Suttix is offline   Reply With Quote
Old 09/12/2017, 09:06 PM   #2
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,070
Reputation: 266
Default Re: TeamSpeak Connector

There is it: http://forum.sa-mp.com/showthread.php?t=437671
Trust me, you can pull some black magic using the search button.
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 09/12/2017, 09:22 PM   #3
Suttix
Big Clucker
 
Join Date: Jul 2017
Posts: 63
Reputation: 3
Default Re: TeamSpeak Connector

Quote:
Originally Posted by Eoussama View Post
There is it: http://forum.sa-mp.com/showthread.php?t=437671
Trust me, you can pull some black magic using the search button.
There is no answer on my question,trust me...
Suttix is offline   Reply With Quote
Old 09/12/2017, 09:58 PM   #4
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,070
Reputation: 266
Default Re: TeamSpeak Connector

I never used this plugin myself, but looking at the functions list, I feel that this function ould be what you're looking for:
PHP Code:
native TSC_GetClientUid(clientiddest[], maxlen sizeof(dest)); 
here is a list of the complete available functions.
PHP Code:

//server functions

native TSC_Connect(user[], pass[], hostname[], port 9987serverquery_port 10011);

native TSC_Disconnect();

native TSC_ChangeNickname(nickname[]);

native TSC_SendServerMessage(msg[]);





//data query functions

native TSC_QueryChannelData(channelidTSC_CHANNEL_QUERYDATA:data, const callback[], const format[] = "", {Float_}:...);

native TSC_QueryClientData(clientidTSC_CLIENT_QUERYDATA:data, const callback[], const format[] = "", {Float_}:...);

native TSC_GetQueriedData(dest[], max_len sizeof(dest));

native TSC_GetQueriedDataAsInt();





//channel functions

native TSC_CreateChannel(channelname[], TSC_CHANNELTYPE:type TEMPORARYmaxusers = -1parentchannelid = -1upperchannelid = -1talkpower 0);

native TSC_DeleteChannel(channelid);

native TSC_GetChannelIdByName(channelname[]);

native TSC_IsValidChannel(channelid);

native TSC_SetChannelName(channelidchannelname[]);

native TSC_GetChannelName(channeliddest[], maxlen sizeof(dest));

native TSC_SetChannelDescription(channeliddesc[]);

native TSC_SetChannelType(channelidTSC_CHANNELTYPE:type);

native TSC_CHANNELTYPE:TSC_GetChannelType(channelid);

native TSC_SetChannelPassword(channelidpassword[]);

native TSC_HasChannelPassword(channelid);

native TSC_SetChannelRequiredTP(channelidtalkpower);

native TSC_GetChannelRequiredTP(channelid);

native TSC_SetChannelUserLimit(channelidmaxusers);

native TSC_GetChannelUserLimit(channelid);

native TSC_SetChannelParentId(channelidparentchannelid);

native TSC_GetChannelParentId(channelid);

native TSC_SetChannelOrderId(channelidupperchannelid);

native TSC_GetChannelOrderId(channelid);

native TSC_GetDefaultChannelId();





//client functions

native TSC_GetClientIdByUid(uid[]);

native TSC_GetClientIdByIpAddress(ip[]);



native TSC_GetClientUid(clientiddest[], maxlen sizeof(dest));

native TSC_GetClientDatabaseId(clientid);

native TSC_GetClientChannelId(clientid);

native TSC_GetClientIpAddress(clientiddest[], maxlen sizeof(dest));



native TSC_KickClient(clientidTSC_KICKTYPE:kicktypereasonmsg[] = "");

native TSC_BanClient(clientuid[], secondsreasonmsg[]);

native TSC_MoveClient(clientidchannelid);



native TSC_SetClientChannelGroup(clientidgroupidchannelid);

native TSC_AddClientToServerGroup(clientidgroupid);

native TSC_RemoveClientFromServerGroup(clientidgroupid);

native TSC_SetClientTalkerStatus(clientidbool:status);

native TSC_SetClientDescription(clientid, const description[]);



native TSC_PokeClient(clientidmsg[]);

native TSC_SendClientMessage(clientidmsg[]); 
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 09/12/2017, 10:16 PM   #5
Suttix
Big Clucker
 
Join Date: Jul 2017
Posts: 63
Reputation: 3
Default Re: TeamSpeak Connector

I wanna get client's nickname by his id or his id by nickname.
If there was a command like TSC_GetClientNameById(clientid) or TSC_GetClientIdByName(nickname[]) it would be much easier to use this plugin.I want to do in samp script something like when you enter to any room on ts i wanna get a message like "Suttix joined the channel" or whatever is client's name..
Sorry for my bad english
Suttix is offline   Reply With Quote
Old 10/12/2017, 10:23 AM   #6
Suttix
Big Clucker
 
Join Date: Jul 2017
Posts: 63
Reputation: 3
Default Re: TeamSpeak Connector

Anyone?
Suttix is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] Teamspeak Connector maddinat0r Plugin Development 325 08/09/2018 07:04 PM
route connector CodeStyle175 Scripting Help 1 11/11/2017 07:55 PM
[Map] Connector Gas Tellken Maps 4 01/06/2012 03:04 AM
PSU connector help! patchkinson Everything and Nothing 3 20/03/2010 09:24 PM


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.