AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_get_user_team under client_disconnect? (https://forums.alliedmods.net/showthread.php?t=113052)

nismo 12-23-2009 03:40

cs_get_user_team under client_disconnect?
 
Hello.

Can I exec command 'cs_get_user_team()' under client_disconnect() callback?

If its not, then how to get players team who is disconnecting?

Thanks.

addicted2sex 12-23-2009 04:38

Re: cs_get_user_team under client_disconnect?
 
I think no...

Another way is by caching into a var when someone joins a team using
PHP Code:

register_event("TeamInfo""eventTeamInfo""a"

while he's playing and when he disconnects to retrieve the value from that var ..


All times are GMT -4. The time now is 04:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.