maddinat0r / samp-tsconnector

A plugin for SA-MP to control a Teamspeak3 Server from the gamemode
MIT License
17 stars 3 forks source link

function to query non-cached client/channel data #3

Closed maddinat0r closed 9 years ago

maddinat0r commented 10 years ago
forward TSC_OnClientChangeNick(uid[], oldnick[], newnick[]);
maddinat0r commented 10 years ago

The server doesn't notify a nickname change via the notify event, so implementing this callback will be an interesting challenge. A possible solution would be to call this callback every time a notify event is sent, which contains the clients nickname and check if the old nickname matches that new nickname. However, this is an unreliable approach, since the script isn't instantly notified when the nickname changes.

maddinat0r commented 10 years ago

I'll probably just add a way to query client data through callbacks. Not really a TSC_OnClientNickChange callback, but it's better than nothing.