Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by eLiTe.
What can i do with "TSC_SetTimeoutTime"? :3
|
You can set the timeout time of the socket. If the socket takes to long recieving the data from the Teamspeak server, it will abort the request and the native returns -1. The time between the request and the abort is the timeout time. The default timeout time is 200ms.
Quote:
Originally Posted by dudaefj
amazing!!
can you do CreateSubChannel() and GetSubChannelsOnChannel() ?
|
v0.3 will have these functions:
- TSC_SetChannelSubChannel(channelid, parentchannelid);
- TSC_GetSubChannelListOnChannel(channelid, list[]);
SetChannelSubChannel sets a channel as a sub-channel of an other channel and GetSubChannelListOnChannel does what it says, it gets a list of sub-channels of a channel. (jesus how many times was the word 'channel' in this sentence)
Posts: 845
Threads: 3
Joined: Jun 2010
Version 0.3 is released.
Changes:
- Added full documentation of all natives (documentation is in include file)
- Added automatic reconnect if connection aborts
- New natives: SetChannelSubChannel, MoveChannelBelowChannel and GetSubChannelListOnChannel
- The natives AddClientToServerGroup, RemoveClientFromServerGroup and SetClientChannelGroup take now a client database ID instead of a normal client ID, this change allows now giving rights even when client is offline
- Because of the above change, 2 additional natives were added: GetClientDBIDByUID and GetClientDBIDByID
- Some bug fixes and code improvements
Posts: 24
Threads: 1
Joined: Dec 2013
good bro
Posts: 845
Threads: 3
Joined: Jun 2010
Thank you for your help! I just released v0.6.1 with all those fixes.
Here is the changelog and download.
Posts: 2,557
Threads: 77
Joined: Nov 2010
Reputation:
0
That would be ultra useful if you could change people's coordinates and sound volume in the room they're in.
- PLEASE -
Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by MyU
Thanks for the fix, but theres still a problem on diffrent Teamspeakі Servers.
The increased delay did not the trick for me, a delay of 300msec did it for me all under 300 doesnt work.
This solution isnt the best one, but if it's the easiest one how about exposing the delay as a native so ppls with a "slower" Connection does not need to recompile the whole src P:
|
Sorry for the late response.
That's the only solution I found. I can't immediately take the result if there are delays caused by the Teamspeak server and the network.
However, I'll try to implement a method to set this delay automatically based on the ping value between the SA-MP server and the Teamspeak server, so there won't be no need to worry about setting this time via an extra native.
Posts: 35
Threads: 4
Joined: Dec 2007
Reputation:
0
Sorry if it has been asked before, but i couldn't see it...
Is there a way that you can get the user id based on their username?
So that when a user does a command (e.g. /joinchannel example) it gets their name, and moves the TS user with that name to channel 'example'.
Is this possible?
Thank you
Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by ben1
Sorry if it has been asked before, but i couldn't see it...
Is there a way that you can get the user id based on their username?
So that when a user does a command (e.g. /joinchannel example) it gets their name, and moves the TS user with that name to channel 'example'.
Is this possible?
Thank you
|
It's not yet possible.
I'm planing on reworking some things in v0.7, for example using channel id's instead of names and adding natives which also return data (like "TSC_GetClientUidByName", which should be useful in your /joinchannel command). I just currently don't have enough free time to do that.
Posts: 142
Threads: 22
Joined: Sep 2013
Reputation:
0
Nice Man, Love you so much. Thanks