Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // [TF2] Remove garbage entities (ammo packs (from players), dropped weapons)
- // by CrazyHackGUT aka Kruzya
- // v1.0
- // https://g-44.ru/
- #include <sdkhooks>
- #include <sdktools>
- public Plugin myinfo = {
- description = "Удаляет все мусорные энтити (аммо паки (которые дропаются с игроков), дропнутые оружия)",
- version = "1.0",
- author = "CrazyHackGUT aka Kruzya",
- name = "[TF2] Remove garbage entities",
- url = "https://g-44.ru/"
- };
- public void OnEntityCreated(int iEntity, const char[] szClassName) {
- if (strcmp(szClassName, "tf_ammo_pack") == 0 || strcmp(szClassName, "tf_dropped_weapon") == 0)
- SDKHook(iEntity, SDKHook_SpawnPost, OnGarbageEntityReady);
- }
- public void OnGarbageEntityReady(int iAmmoPack) {
- AcceptEntityInput(iAmmoPack, "Kill");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement