Raised This Month: $ Target: $400
 0% 

hook player join team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-26-2011 , 05:51   hook player join team
Reply With Quote #1

how can i hook the event when a player is transferred to a team?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-26-2011 , 06:17   Re: hook player join team
Reply With Quote #2

http://wiki.alliedmods.net/Half-Life...vents#TeamInfo
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-26-2011 , 06:55   Re: hook player join team
Reply With Quote #3

okay
how about when he chooses a class?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-26-2011 , 07:45   Re: hook player join team
Reply With Quote #4

Not sure, maybe you can take a look in a auto team join plugin.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-28-2011 , 10:59   Re: hook player join team
Reply With Quote #5

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;

hornet is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-28-2011 , 14:33   Re: hook player join team
Reply With Quote #6

lol...and i used the same method for other things
how can i pass along it? sometimes i really don't think :/
thanks
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 14:41.


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