Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdkhooks>
- #include <sdktools>
- public OnClientPutInServer(client)
- {
- SDKHook(client, SDKHook_PreThink, PreThink);
- }
- public OnClientDisconnect(client)
- {
- SDKUnhook(client, SDKHook_PreThink, PreThink);
- }
- public PreThink(client)
- {
- if(bIsSurvivor(client))
- {
- SetEntPropFloat(client, Prop_Send, "m_TimeForceExternalView", 5000.3);
- }
- }
- stock bool bIsSurvivor(int client)
- {
- return client > 0 && client <= MaxClients && IsClientInGame(client) && GetClientTeam(client) == 2 && !IsClientInKickQueue(client) && IsPlayerAlive(client);
- }
Advertisement
Add Comment
Please, Sign In to add comment