forked from ugurbayraktarr/Plugins-for-CSGO-Servers
-
Notifications
You must be signed in to change notification settings - Fork 3
/
buyukisyan_fix.sp
64 lines (56 loc) · 1.35 KB
/
buyukisyan_fix.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include <sdkhooks>
#include <sdktools>
public Plugin:myinfo =
{
name = "Büyükisyan Fix",
author = "ImPossibLe`",
description = "DrK # GaminG",
version = "1.0",
};
public OnPluginStart()
{
HookEvent("round_start", Event_RoundStart);
}
public Action Event_RoundStart(Handle event, char[] name, bool dontBroadcast)
{
CreateTimer(1.0, MuftuleriKaldir);
}
public Action MuftuleriKaldir(Handle timer)
{
new i;
for(i=1; i<=2048; i++)
{
if(IsValidEntity(i))
{
decl String:entityIsmi[128];
GetEntityClassname(i, entityIsmi, sizeof(entityIsmi));
if(StrEqual(entityIsmi, "func_physbox", false))
{
//PrintToChat(client, "%s - %d", entityIsmi, i);
AcceptEntityInput(i, "Kill");
}
}
}
}
public OnMapStart()
{
decl String:mapName[64];
GetCurrentMap(mapName, sizeof(mapName));
if(!((StrEqual(mapName, "jb_buyukisyan_son", false)) || (StrEqual(mapName, "jb_buyukisyan_pgg", false))))
SetFailState("Bu plugin sadece buyukisyan maplarinda calismaktadir..");
}
public OnEntityCreated(entity, const char[] classname)
{
if (StrEqual(classname, "weapon_m4a1_silencer"))
{
PrintToChatAll(" \x04[DrK # GaminG] \x10Büyükisyan FIX!");
AcceptEntityInput(entity, "Kill");
//SDKHook(entity, SDKHook_Spawn, OnDeagleSpawn);
}
}
/*
public Action:OnDeagleSpawn(entity)
{
PrintToChatAll("TEST2");
return Plugin_Handled;
} */