Raised This Month: $ Target: $400
 0% 

Detect when player chose a class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 01-02-2013 , 11:41   Detect when player chose a class
Reply With Quote #1

I need to detect when a player chose a skin in Counter-Strike 1.6 so I can change his name.

So far I noticed that join_team event is triggered twice, once when user chooses the team and second time when he chooses a skin .

Last edited by ghostdlr; 01-02-2013 at 11:43.
ghostdlr is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-02-2013 , 12:18   Re: Detect when player chose a class
Reply With Quote #2

if it is like that, first time triggered - set a variable to 1 & second time on 2, when second time executed, change his name.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
gamer99
Senior Member
Join Date: Jul 2011
Old 01-02-2013 , 13:31   Re: Detect when player chose a class
Reply With Quote #3

check the client command joinclass.
__________________
Thanks and regards,
Gamer99
gamer99 is offline
ghostdlr
Senior Member
Join Date: Aug 2010
Old 01-02-2013 , 13:40   Re: Detect when player chose a class
Reply With Quote #4

Quote:
Originally Posted by gamer99 View Post
check the client command joinclass.
How can I do that?
ghostdlr is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2013 , 20:42   Re: Detect when player chose a class
Reply With Quote #5

Quote:
Originally Posted by ghostdlr View Post
So far I noticed that join_team event is triggered twice, once when user chooses the team and second time when he chooses a skin .
To what event are you referring? I can't find any info about a "join_team" event: http://wiki.amxmodx.org/Half-Life_1_Game_Events

You should be able to register the client commands "jointeam" and "joinclass".
__________________
fysiks is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-02-2013 , 22:26   Re: Detect when player chose a class
Reply With Quote #6

He must have been talking about the log event.
__________________
hleV 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 13:23.


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