-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathALL ESP.sp
39 lines (36 loc) · 834 Bytes
/
ALL ESP.sp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
bool g_bAimbot=false;
public void OnPluginStart()
{
RegConsoleCmd("sm_sb", Music, "Set Music in Game");
}
public Action:Music(client, args)
{
g_bAimbot=!g_bAimbot;
if(g_bAimbot)
{
for(int a = 1; a <= MaxClients; ++a)
{
if(IsValidClient(a))
SetEntPropFloat(a, Prop_Send, "m_flDetectedByEnemySensorTime", GetGameTime() + 9999.0);
}
}
if(!g_bAimbot)
{
for(int n = 1; n <= MaxClients; ++n)
{
if(IsValidClient(n))
SetEntPropFloat(n, Prop_Send, "m_flDetectedByEnemySensorTime", 0.0);
}
}
}
stock bool IsValidClient( client )
{
if ( client < 1 || client > MaxClients ) return false;
if ( !IsClientConnected( client )) return false;
if ( !IsClientInGame( client )) return false;
if ( IsFakeClient(client)) return false;
return true;
}