Raised This Month: $32 Target: $400
 8% 

User Joined team event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 11-26-2022 , 15:34   User Joined team event
Reply With Quote #1

How can I detect when a user joined a team or went to spectators?

This doesn't work:
forward client_changeteam(id, newteam, oldteam);


I'm making a plugin for amx 1.8.2
ghostdlr is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-26-2022 , 16:20   Re: User Joined team event
Reply With Quote #2

Hook up event "joined team" with register log event.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-26-2022 at 16:25.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ghostdlr
Senior Member
Join Date: Aug 2010
Old 11-26-2022 , 16:29   Re: User Joined team event
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Hook up event "joined team" with register log event.
Can you give me an example?

I don't know how to use register_logevent

Last edited by ghostdlr; 11-26-2022 at 16:30.
ghostdlr is offline
ghostdlr
Senior Member
Join Date: Aug 2010
Old 11-27-2022 , 10:44   Re: User Joined team event
Reply With Quote #4

Found a solution here:
https://forums.alliedmods.net/showthread.php?t=56370

Event also gets triggered 2 times for each player, every round.

Last edited by ghostdlr; 11-27-2022 at 12:09.
ghostdlr is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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