AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Some help with 3rd camera plugin (https://forums.alliedmods.net/showthread.php?t=184128)

alexix 05-01-2012 08:06

Some help with 3rd camera plugin
 
Hi, I'm using /cam plugin so players can choose to switch camera view.
But I would like to make it so that when someone logs into the server the camera automatically switches to 3rd person, and people can still use the /cam command to change it to normal.


my plugin:
Spoiler

Bilal Pro 05-01-2012 08:57

Re: Some help with 3rd camera plugin
 
Show me ur code.

Exolent[jNr] 05-01-2012 09:29

Re: Some help with 3rd camera plugin
 
Add this to the plugin:

Code:
public client_putinserver(id) {     set_view(id, CAMERA_3RDPERSON); }

Quote:

Originally Posted by Bilal Pro (Post 1699854)
Show me ur code.

He did. He said "my plugin:" and posted the code in spoiler tags.

Bilal Pro 05-01-2012 09:41

Re: Some help with 3rd camera plugin
 
Quote:

Originally Posted by Exolent[jNr] (Post 1699874)
Add this to the plugin:

Code:
public client_putinserver(id) { set_view(id, CAMERA_3RDPERSON); }




He did. He said "my plugin:" and posted the code in spoiler tags.

Oh didn't notice that.

alexix 05-01-2012 10:28

Re: Some help with 3rd camera plugin
 
Quote:

Originally Posted by Exolent[jNr] (Post 1699874)
Add this to the plugin:

Code:
public client_putinserver(id) { set_view(id, CAMERA_3RDPERSON); }

It worked, thanks


All times are GMT -4. The time now is 07:42.

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