AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help spec_mode set (https://forums.alliedmods.net/showthread.php?t=329364)

JohnyS 12-20-2020 15:00

Help spec_mode set
 
Hello, can somebody help me with a code that sets automatically spec_mode 2 on connect? i tried this
Code:

public client_connect(id)
{
        client_cmd(id,"spec_mode 2")
}

But it gets blocked by cs client
Can this thing be done via plugin?

Natsheh 12-20-2020 15:35

Re: Help spec_mode set
 
Nope and what's spec_mode client cvar is?

JohnyS 12-20-2020 15:53

Re: Help spec_mode set
 
spec_mode it's the command that controls camera mode for spectator (1st person, third person, free look) i want to lock the camera on locked chase cam

Barlap 12-20-2020 17:03

Re: Help spec_mode set
 
you can use engclient_cmd as an alternative for client_cmd

JohnyS 12-20-2020 17:15

Re: Help spec_mode set
 
It's the same thing, not work


All times are GMT -4. The time now is 14:12.

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