AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hook player join team (https://forums.alliedmods.net/showthread.php?t=153580)

georgik57 03-26-2011 05:51

hook player join team
 
how can i hook the event when a player is transferred to a team?

drekes 03-26-2011 06:17

Re: hook player join team
 
http://wiki.alliedmods.net/Half-Life...vents#TeamInfo

georgik57 03-26-2011 06:55

Re: hook player join team
 
okay
how about when he chooses a class?

drekes 03-26-2011 07:45

Re: hook player join team
 
Not sure, maybe you can take a look in a auto team join plugin.

hornet 03-28-2011 10:59

Re: hook player join team
 
PHP Code:

#include <amxmodx>

public plugin_init() 
{
    
register_clcmd"joinclass""cmdJoinClass" );
}

public 
cmdJoinClassid )
{
    new 
arg];
    
read_argv1argcharsmaxarg ) );
    
    
console_printid"Class number is %i"str_to_numarg ) );
    
    return 
PLUGIN_CONTINUE;



georgik57 03-28-2011 14:33

Re: hook player join team
 
lol...and i used the same method for other things
how can i pass along it? sometimes i really don't think :/
thanks


All times are GMT -4. The time now is 14:41.

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