Releases: maddinat0r/samp-tsconnector
Releases · maddinat0r/samp-tsconnector
v1.3
- new natives to give/revoke talk power and edit a client description:
native TSC_SetClientTalkerStatus(clientid, bool:status);
native TSC_SetClientDescription(clientid, const description[]);
- bug-fix: queried channel and client data is not normalized
- bug-fix:
TSC_OnClientDisconnect
is not called when a client is kicked or banned - bug-fix: several bugs (mainly freezes) may occur when the SA-MP and/or TS3 server is restarted
v1.2.1
Fixed a bug where parsed Teamspeak3 data included invalid characters.
v1.2
- added error callback:
forward TSC_OnError(TSC_ERROR_TYPE:error_type, error_id, const error_msg[]);
TSC_Disconnect
now properly disconnects and unloads everything- bug fixes:
- a timeout was added in
TSC_Connect
which will abort the connection attempt when it takes longer than 3 seconds TSC_Connect
now returns false if a connection is already established- UID's are now properly escaped
- fixed deadlock in network heartbeat check
- fixed race condition in network buffer access
- a timeout was added in
v1.1.1
- fixed a bug where 'TSC_GetClientIdByIpAddress' called a wrong function
v1.1
- renamed native
TSC_FindClient
toTSC_GetClientIdByUid
- renamed native
TSC_FindChannel
toTSC_GetChannelIdByName
- removed
wait
parameter in nativeTSC_Connect
; this native is now always-blocking - added functions to query non-cached client/channel data:
TSC_QueryChannelData
/TSC_QueryClientData
:
requests a data query and calls the specified callback. In this callback you can useTSC_GetQueriedData
/TSC_GetQueriedDataAsInt
:
retrieves the queried data as a string/integer
- added support for hostnames (e.g. you can now use
localhost
instead of127.0.0.1
) - added more parameters into
TSC_CreateChannel
- added function to retrieve a clients IP address (
TSC_GetClientIpAddress
) - added function to retrieve a client ID through an IP address (
TSC_GetClientIdByIpAddress
) - bugfix: crash when using invalid Teamspeak server IP
- bugfix:
TSC_SetChannelUserLimit
wasn't working correctly when setting user limit to unlimited - bugfix: system detected duplicate notifications inaccurately
- some more small bugfixes
v1.0
- rewrote whole code, this is almost a completely new plugin!
- all channel natives are now using the channelid instead of the channel name to work
- (almost) all client natives are now using the clientid instead of the client uid to work
- a caching system has been built in, you can now directly access data through the Get-functions
- a completely new internal network layer provides more stability and reliability
- merged natives
TSC_Connect
andTSC_Login
(connecting without having almost any permissions makes no sense) TSC_SetChannelSubChannel
has been renamed toTSC_SetChannelParentId
TSC_MoveChannelBelowChannel
has been renamed toTSC_SetChannelOrderId
TSC_SetChannelTalkPower
has been renamed toTSC_SetChannelRequiredTP
(TP = talk power)TSC_SendChannelMessage
andTSC_ToggleClientTalkAbility
have been removed (most likely forever)- new callbacks:
TSC_OnConnect
(is called when connection is established)TSC_OnChannelCreated(channelid)
TSC_OnChannelDeleted(channelid)
TSC_OnChannelReorder(channelid, orderid)
TSC_OnChannelMoved(channelid, parentid, orderid)
TSC_OnChannelRenamed(channelid, name[])
TSC_OnChannelPasswordEdited(channelid, bool:ispassworded, bool:passwordchanged)
TSC_OnChannelTypeChanged(channelid, TSC_CHANNELTYPE:type)
TSC_OnChannelSetDefault(channelid)
TSC_OnChannelMaxClientsChanged(channelid, maxclients)
TSC_OnChannelRequiredTPChanged(channelid, talkpower)
TSC_OnClientPrivateText(from_clid, from_nickname[], to_clid, msg[])
(private chat between ServerQuery client and other normal clients)
- new functions:
TSC_FindChannel(channelname[])
(gets the channelid through the channelname; the name has to match exactly)TSC_FindClient(uid[])
TSC_IsValidChannel(channelid)
TSC_GetDefaultChannelId()
TSC_GetClientUid
TSC_GetClientDatabaseId
TSC_GetClientChannelId
- other
TSC_GetChannel*
functions
TSConnector v0.6.2
- implemented an automatic delay check which should increase reliability
TSConnector v0.6.1
- fixed a bug where data might be mis-interpreted sometimes
- fixed native
TSC_SetChannelType
A special thanks to MyU from the SA-MP forum for his help.
TSConnector v0.6
- massive code improvements and cleanup
- increased reliability
- removed all documentation from the include file (there will be a better one in the SA-MP wiki soon)
- added new native "TSC_ChangeNickname" to change the nickname of the logged-in serverquery account
TSConnector v0.5
v0.5