AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Danger Zone Team Assignment Problem (https://forums.alliedmods.net/showthread.php?t=326925)

CDboy 08-23-2020 13:05

[CSGO] Danger Zone Team Assignment Problem
 
Hello, I am writing a plugin to implement some official danger zone server function. That means I know which team to assign a specific player to before the match starts. So I DON'T want to let the players use dz_jointeam command.

So the question is, how can I let a player join the corresponding team with the ConVar sv_dz_jointeam_allowed set to 0?

Bacardi 08-23-2020 14:12

Re: [CSGO] Danger Zone Team Assignment Problem
 
I have not tested.

Leave sv_dz_jointeam_allowed to 0 and use Server Command
Code:

"dz_jointeam"
FCVAR_GAMEDLL FCVAR_PRINTABLEONLY
- dz_jointeam team# [userid#|name] - Join DZ team N (0 to leave your team).  Server admins can assign other players to teams.

dz_jointeam team userid


Don't use names when execute server commands, it's nasty hack.


*edit
More about cvar
Code:

"sv_dz_jointeam_allowed" = "0"
FCVAR_GAMEDLL FCVAR_RELEASE
- Whether non-server admins are allowed to use the dz_jointeam command


CDboy 08-24-2020 01:45

Re: [CSGO] Danger Zone Team Assignment Problem
 
Quote:

Originally Posted by Bacardi (Post 2715284)
I have not tested.

Leave sv_dz_jointeam_allowed to 0 and use Server Command
Code:

"dz_jointeam"
FCVAR_GAMEDLL FCVAR_PRINTABLEONLY
- dz_jointeam team# [userid#|name] - Join DZ team N (0 to leave your team).  Server admins can assign other players to teams.

dz_jointeam team userid


Don't use names when execute server commands, it's nasty hack.


*edit
More about cvar
Code:

"sv_dz_jointeam_allowed" = "0"
FCVAR_GAMEDLL FCVAR_RELEASE
- Whether non-server admins are allowed to use the dz_jointeam command


It works! Thank you so much.

CDboy 12-07-2021 01:18

Re: [CSGO] Danger Zone Team Assignment Problem
 
Quote:

Originally Posted by Bacardi (Post 2715284)
I have not tested.

Leave sv_dz_jointeam_allowed to 0 and use Server Command
Code:

"dz_jointeam"
FCVAR_GAMEDLL FCVAR_PRINTABLEONLY
- dz_jointeam team# [userid#|name] - Join DZ team N (0 to leave your team).  Server admins can assign other players to teams.

dz_jointeam team userid


Don't use names when execute server commands, it's nasty hack.


*edit
More about cvar
Code:

"sv_dz_jointeam_allowed" = "0"
FCVAR_GAMEDLL FCVAR_RELEASE
- Whether non-server admins are allowed to use the dz_jointeam command


Sorry for posting below this old post. Could you please tell me where to find explanation of a console command? Some commands do not have explanation when I type it in console.

Bacardi 12-07-2021 07:02

Re: [CSGO] Danger Zone Team Assignment Problem
 
Try
find cvarname
or
help cvarname

There are also plugins which list cvars.

Here is one of plugins. https://github.com/ambaca/Bacardi-Du...20Cmds%20Cvars

But notice:
- server and client have mostly same cvars and commands.
Client follow some of server cvars (replicate) for example: sv_cheats
- Also some cvars and commands are server side and some client side.
- Some cvars are hidden, you can see output with help command
Code:

smoothstairs
Unknown command "smoothstairs"
help smoothstairs
"smoothstairs" = "1" game replicated                                            - Smooth player eye z coordinate when traversing stairs.


CDboy 12-07-2021 21:01

Re: [CSGO] Danger Zone Team Assignment Problem
 
Quote:

Originally Posted by Bacardi (Post 2765257)
Try
find cvarname
or
help cvarname

There are also plugins which list cvars.

Here is one of plugins. https://github.com/ambaca/Bacardi-Du...20Cmds%20Cvars

But notice:
- server and client have mostly same cvars and commands.
Client follow some of server cvars (replicate) for example: sv_cheats
- Also some cvars and commands are server side and some client side.
- Some cvars are hidden, you can see output with help command
Code:

smoothstairs
Unknown command "smoothstairs"
help smoothstairs
"smoothstairs" = "1" game replicated                                            - Smooth player eye z coordinate when traversing stairs.


Very kind of you, thanks!


All times are GMT -4. The time now is 16:29.

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