Raised This Month: $ Target: $400
 0% 

cs_set_user_team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-24-2011 , 06:09   cs_set_user_team
Reply With Quote #1

Does not work properly
Do I have wrong?

Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR")

	register_clcmd("/ct", "set_user_counterterrorist")
	register_clcmd("say /ct", "set_user_counterterrorist")
	register_clcmd("/t", "set_user_terrorist")
	register_clcmd("say /t", "set_user_terrorist")
	register_clcmd("/sp", "set_user_spectator")
	register_clcmd("say /sp", "set_user_spectator")
}

public set_user_counterterrorist(id)
{
	cs_set_user_team(id, CS_TEAM_CT)
}

public set_user_terrorist(id)
{
	cs_set_user_team(id, CS_TEAM_T)
}

public set_user_spectator(id)
{
	cs_set_user_team(id, CS_TEAM_SPECTATOR)
}
RuRuRu612754 is offline
 


Thread Tools
Display Modes

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 12:08.


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