View Single Post
nacho312
Member
Join Date: Mar 2020
Old 09-13-2020 , 19:48   Re: Anti Helicopter-Blocking
Reply With Quote #17

Quote:
Originally Posted by Supremache View Post
Try this one, it's the same plugin on dark professional zombie escape serverL
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta_stocks> #include <fakemeta_util> #include <hamsandwich> #include <ham_const> #include <cstrike> #define PLUGIN "Anti-Bug" #define VERSION "1.0" #define AUTHOR "DPCS" new bugYapanlar[33] // Bug yapan oyuncularin listesi. new const Float:ctHasar = 15.0 // Bug yapan insanlara her adimda verilecek zarar new const Float:tHasar = 500.0 // Bug yapan zombilere her adimda verilecek zarar new const Float:incitmeSikligi = 0.6 // Bug yapanlara zarar verme sikligi (saniye cinsinden) public plugin_init() {           register_plugin(PLUGIN, VERSION, AUTHOR)     // Tasit araclarina bug yapildiginda bug_var fonksiyonu cagrilsin     RegisterHam(Ham_Blocked, "func_tracktrain", "bug_var")     set_task(incitmeSikligi,"zararVer",0,"",0,"b") } public bug_var(const this,const idother) {     if (idother >= 1 && idother <= 32) // Sadece oyuncu olan entityler kayit altina alinir         bugYapanlar[idother] = true       } public zararVer() {           // Her oyuncu icin bug yapip yapmadigi kontrol edilsin     for (new i = 1; i < 33; i++)     {         if (bugYapanlar[i] && is_user_alive(i))         {                                         client_print (i, print_center, "BUG YAPMA! / DON'T BUG!" )                           if (cs_get_user_team(i) == CsTeams:1) // zombi                 fm_fakedamage(i, "", tHasar, DMG_GENERIC)             else if (cs_get_user_team(i) == CsTeams:2) // insan                 fm_fakedamage(i, "", ctHasar, DMG_GENERIC)                           bugYapanlar[i] = false // Ceza bitti. Hala bug devam ediyorsa bir daha True olur.                       }     }       }
I'm going to try this asap, and I'll reply here, sorry I'm a bit busy. Huge thanks @Supremache

Quote:
Originally Posted by Snake. View Post
I guess this is what you want exactly

Edit: did not see the above post. It should work as well because from the same codder.
Also thanks @Snake, looks like this is what I was looking for, I'll try it asap.

Thanks alot to everyone who replied here, much appreciated from you guys.

Last edited by nacho312; 09-13-2020 at 20:07.
nacho312 is offline