AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect when player chose a class (https://forums.alliedmods.net/showthread.php?t=204692)

ghostdlr 01-02-2013 11:41

Detect when player chose a class
 
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 .

Napoleon_be 01-02-2013 12:18

Re: Detect when player chose a class
 
if it is like that, first time triggered - set a variable to 1 & second time on 2, when second time executed, change his name.

gamer99 01-02-2013 13:31

Re: Detect when player chose a class
 
check the client command joinclass.

ghostdlr 01-02-2013 13:40

Re: Detect when player chose a class
 
Quote:

Originally Posted by gamer99 (Post 1865475)
check the client command joinclass.

How can I do that?

fysiks 01-02-2013 20:42

Re: Detect when player chose a class
 
Quote:

Originally Posted by ghostdlr (Post 1865413)
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".

hleV 01-02-2013 22:26

Re: Detect when player chose a class
 
He must have been talking about the log event.


All times are GMT -4. The time now is 13:23.

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