AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Team choose script (https://forums.alliedmods.net/showthread.php?t=252969)

Estland 12-12-2014 16:36

Team choose script
 
Can anyone give me function for choosing/changing team? So that I could put it in my custom menu.

YamiKaitou 12-12-2014 18:49

Re: Team choose script
 
http://amxmodx.org/api/cstrike/cs_set_user_team

Estland 12-13-2014 07:31

Re: Team choose script
 
I mean that function, when you press M key in CS 1.6.

klippy 12-13-2014 08:27

Re: Team choose script
 
Try this:
PHP Code:

engclient_cmd(id"chooseteam"); 

You can use this even if you have already hooked "chooseteam" command and blocked it. It will still display the team menu to the player.

zmd94 12-13-2014 09:53

Re: Team choose script
 
PHP Code:

register_clcmd("chooseteam""clcmd_changeteam"


Estland 12-13-2014 11:39

Re: Team choose script
 
Quote:

Originally Posted by KliPPy (Post 2234768)
Try this:
PHP Code:

engclient_cmd(id"chooseteam"); 

You can use this even if you have already hooked "chooseteam" command and blocked it. It will still display the team menu to the player.

I guess that's what I need, will test later. Thanks!


All times are GMT -4. The time now is 15:21.

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