Camera
Hey, I just started coding and I need help with small cs 1.6 plugin that I'm trying to make.
I know there is already one plugin that does this for you but I wanted to make my own with some difference. It's about camera plugin. I'm trying to make when a player types /cam, he goes into 3rd camera mode, and if he is already in 3rd camera mode, he goes into first mode. But with this code, I can only go in 3rd person, and I cannot come back in 1st person. Why? I think this code should be fine. Code:
public setview(id) |
Re: Camera
set_view only sets player view and returning nothing so you shouldnt use it in if statement, you can use bool[33]
|
Re: Camera
Code:
new bool:PlayerInThirdPerson[33];Code:
public setview(id) |
Re: Camera
This is how I did it in my plugin:
PHP Code:
|
Re: Camera
Quote:
|
Re: Camera
Show the full code.
|
Re: Camera
Quote:
Code:
#include <amxmodx> |
Re: Camera
Here it's working.
Code:
Spoiler
|
Re: Camera
Quote:
|
Re: Camera
Quote:
Thanks in advance |
| All times are GMT -4. The time now is 12:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.