1- #pragma semicolon 1
1+ #pragma semicolon 1
22
33#define DEBUG
44
55#define PLUGIN_AUTHOR " BattlefieldDuck"
6- #define PLUGIN_VERSION " 1.2 "
6+ #define PLUGIN_VERSION " 1.3 "
77
88#include <sourcemod>
99#include <sdktools>
@@ -211,6 +211,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
211211 {
212212 SetClientViewEntity (client , point );
213213
214+ camera = EntRefToEntIndex (g_iCameraList [owner ][g_iInConsoleID [client ]][0 ]);
214215 PrintCenterText (client , HUD_TEXT , owner , g_iInConsoleID [client ]+ 1 , GetCameraName (camera ));
215216 }
216217 else
@@ -256,6 +257,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
256257 {
257258 SetClientViewEntity (client , point );
258259
260+ camera = EntRefToEntIndex (g_iCameraList [owner ][g_iInConsoleID [client ]][0 ]);
259261 PrintCenterText (client , HUD_TEXT , owner , g_iInConsoleID [client ]+ 1 , GetCameraName (camera ));
260262 }
261263 else
@@ -644,11 +646,13 @@ bool CanSeeClient(int client, int camera)
644646 if (entity > 0 && entity <= MaxClients )
645647 {
646648 CloseHandle (trace );
649+
647650 return true ;
648651 }
649652 }
650653
651654 CloseHandle (trace );
655+
652656 return false ;
653657}
654658
@@ -736,6 +740,7 @@ bool IsCameraActivated(int client, int camera)
736740 return true ;
737741 }
738742 }
743+
739744 return false ;
740745}
741746
@@ -751,6 +756,7 @@ bool SetCameraActivated(int client, int camera, int point)
751756 return true ;
752757 }
753758 }
759+
754760 return false ;
755761}
756762
0 commit comments