SA-MP Forums Archive
[Plugin] Teamspeak Connector - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Teamspeak Connector (/showthread.php?tid=437671)

Pages: 1 2 3 4 5 6


Re: Teamspeak Connector - inferno211 - 20.02.2017

Код:
public TSC_OnClientConnect(clientid, nickname[])
{
	TSC_PokeClient(clientid, "Welcome!");
	TSC_SendClientMessage(clientid, "Welcome!");
	return 1;
}
It does not work. When I connect it does not perform this function. I use local sorver on my pc...


Re: Teamspeak Connector - eFFectw0w - 26.03.2017

The plugin doesn't support Russian letters, perhaps fix it .

PHP код:
TSC_SendClientMessage(TSC_GetClientIdByUid("K+fJTkRtARxyUJczCELIxGBvI9Q="), "привет"); 
Log
PHP код:
ID1538 Texterror while executing "sendtextmessage targetmode=1 target=1 msg=привет"invalid parameter 



Re: Teamspeak Connector - Daniellucasbv - 21.05.2017

I not can make the connection , someone can help me ?


Re: Teamspeak Connector - NewFreeroamStunt - 09.06.2017

nice.. but,
how to make TeamSpeak3 Server in my linux Virtual Server?


Re: Teamspeak Connector - DrakeBell - 22.11.2017

So umm I'm deciding to use your plugin. So what we have is that we have a channel command. Whenever someone uses /channel 1, it automatically gives out a message saying "example has switched to channel 1" Can you help me integrate it within the script, so that when ever someone uses /channel 1, he automatically gets switched to channel 1. I need complete steps please.

Код:
if(Voip[playerid] == false) return SCM(playerid, COLOR_GREY,"You have not activated your Voip label. (Hint: /channel on)");
	Update3DTextLabelText(voiplabel[playerid], 0xE91616FF, "Channel: 1");
	SendNearbyMessage(playerid, 20.0, 0xE91616FF, "**%s Has switched to the channel 1.**", ReturnName(playerid, 0), params);
	}



Re: Teamspeak Connector - SH0x - 25.11.2017

anyone can give me an example for this ?
i want to add a command in gamemode like /ts3 , when player used this command he connect automatically to teamspeak server .

+ i want to send a teamspeak private message for player who used /buylevel in samp server .
what i must to do ?


Re: Teamspeak Connector - Suttix - 10.12.2017

How can I get client name by his id or his id by name and how to get client server group?


Re: Teamspeak Connector - Yasef99 - 14.01.2018

Can anyone help me? the plugin doesn't load, because my VPS is Windows Server x64, how can i use it?


Re: Teamspeak Connector - Kegy5 - 19.01.2018

Is there a possibility to check the channel group of a client when he isn't in the channel? When i set the channel group at login, there is no check ability, so i just can do TSC_SetClientChannelGroup, but the client will always get settet again to the group every login, even if he already is in it, its pretty disturbing...


Re: Teamspeak Connector - maddinat0r - 19.01.2018

Quote:
Originally Posted by Kegy5
View Post
Is there a possibility to check the channel group of a client when he isn't in the channel? When i set the channel group at login, there is no check ability, so i just can do TSC_SetClientChannelGroup, but the client will always get settet again to the group every login, even if he already is in it, its pretty disturbing...
No, but you can check if a client already has the group id set before actually setting it:
Code:
const MY_CHANNEL_GROUP_ID = 123;
const MY_CHANNEL_ID = 321;

// ...

new channelid = TSC_GetClientChannelId(clientid);
TSC_QueryClientData(clientid, CLIENT_CHANNEL_GROUP_ID, "OnChannelGroupRetrieved", "dd", clientid, channelid);

// ...

public OnChannelGroupRetrieved(clientid, channelid)
{
	new channel_group_id = TSC_GetQueriedDataAsInt();
	if (channelid == MY_CHANNEL_ID && channel_group_id != MY_CHANNEL_GROUP_ID)
		TSC_SetClientChannelGroup(clientid, MY_CHANNEL_GROUP_ID, channelid);
}



Re: Teamspeak Connector - Kegy5 - 19.01.2018

Quote:
Originally Posted by maddinat0r
View Post
No, but you can check if a client already has the group id set before actually setting it:
Code:
const MY_CHANNEL_GROUP_ID = 123;
const MY_CHANNEL_ID = 321;

// ...

new channelid = TSC_GetClientChannelId(clientid);
TSC_QueryClientData(clientid, CLIENT_CHANNEL_GROUP_ID, "OnChannelGroupRetrieved", "dd", clientid, channelid);

// ...

public OnChannelGroupRetrieved(clientid, channelid)
{
	new channel_group_id = TSC_GetQueriedDataAsInt();
	if (channelid == MY_CHANNEL_ID && channel_group_id != MY_CHANNEL_GROUP_ID)
		TSC_SetClientChannelGroup(clientid, MY_CHANNEL_GROUP_ID, channelid);
}
The problem is, the client need to be in the channel, i would like to check without that the client need to be there

//edit:
Ok, it works, changed a few things and now is all fine.
Thanks


Re: Teamspeak Connector - PgMNA - 09.02.2018

i am gonna try this


Re: Teamspeak Connector - Neom - 03.07.2018

Cool +REP


Re: Teamspeak Connector - Markus001 - 21.07.2018

how is the command established: TSC_MoveClient


Re: Teamspeak Connector - Markus001 - 08.09.2018

[TS3Bot Error 2]error while reading: End of file