AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block Command (https://forums.alliedmods.net/showthread.php?t=174428)

kiki33hun 12-20-2011 03:20

Block Command
 
Hy, how to block "chooseteam" cmd, only putinserver?

Devil259 12-20-2011 05:00

Re: Block Command
 
Code:
register_clcmd("chooseteam", "No_ChooseTeam") register_clcmd("jointeam", "No_ChooseTeam") public No_ChooseTeam( id ) {      return ( CS_TEAM_T <= cs_get_user_team(id) <= CS_TEAM_CT ) }

kiki33hun 12-20-2011 06:47

Re: Block Command
 
Only putinserver ?

ConnorMcLeod 12-20-2011 07:08

Re: Block Command
 
Quote:

Originally Posted by kiki33hun (Post 1616440)
Only putinserver ?

This means nothing, yes we roughly see what you want but you need to give details.

Don't ask how to do something, better to say what you want to do with the plugin.

kiki33hun 12-20-2011 07:11

Re: Block Command
 
I would like to see that when I enter the server can choose not to breed so do not come in a selection menu!

Devil259 12-20-2011 07:12

Re: Block Command
 
Code:
#include < amxmodx > #include < cstrike > public plugin_init( ) {     register_clcmd("chooseteam", "No_ChooseTeam")     register_clcmd("jointeam", "No_ChooseTeam") } public No_ChooseTeam( id ) {      return ( CS_TEAM_T <= cs_get_user_team(id) <= CS_TEAM_CT ) }

That was so difficult !

kiki33hun 12-20-2011 07:14

Re: Block Command
 
Include cstrike :)

Blocking Jointeam Vgui menu?????

Devil259 12-20-2011 07:58

Re: Block Command
 
Quote:

Originally Posted by kiki33hun (Post 1616450)
Include cstrike :)

Yes, edited.

Quote:

Originally Posted by kiki33hun (Post 1616450)
Blocking Jointeam Vgui menu?????

Search by yourself, this problem have been asked many times.

ConnorMcLeod 12-20-2011 09:39

Re: Block Command
 
It won't block auto menu when you join the server.

Devil259 12-20-2011 15:37

Re: Block Command
 
Yes, you're right, but his problem was "how to block "chooseteam" cmd ?".


All times are GMT -4. The time now is 11:59.

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