[Pomoc] Max damage
Results 1 to 4 of 4

Thread: Max damage

  1. #1
    Junior Member Array
    Join Date
    Jan 2018
    Karma
    0

    Default Max damage

    Cao,moze li mi neko dati ili napraviti plugin za max killova po mapi,npr da jedan igrac ima 5 killa max na mapi i da posle toga ne daje damage.
    U pitanju je Deathrun mod,imam neke igrace koji imaju po 10 killa i vise i rasteruju igrace.

  2. #2
    Senior Member Array
    Join Date
    Jun 2015
    Location
    Belgrade
    Karma
    10

    Default

    PHP Code:
    #include <amxmodx>
    #include <hamsandwich>

    #define PLUGIN  "Kills limit"
    #define VERSION "1.0"
    #define AUTHOR  "JustORSS"

    #define MAX_KILLS 5    // Kada igrac napravi ovoliko killova nece vise praviti damage

    new player_kills[33];

    public 
    plugin_init() {
        
    register_plugin(PLUGINVERSIONAUTHOR);
        
        
    register_event("DeathMsg""DeathMsgEvent""a");
        
    RegisterHam(Ham_TakeDamage"player""HamTakeDamage"false);
    }

    public 
    client_putinserver(id)
        
    player_kills[id] = 0;

    public 
    DeathMsgEvent()
        
    player_kills[read_data(1)]++;

    public 
    HamTakeDamage(victimidinflictorattackerFloat:damagedamagebits) {
        if(
    player_kills[attacker] >= MAX_KILLS) {
            
    SetHamParamFloat(40.0);
            return 
    HAM_HANDLED;
        }
        return 
    HAM_IGNORED;


  3. #3
    Junior Member Array
    Join Date
    Jan 2018
    Karma
    0

    Default

    Hvala puno,treba mi jos jedan,dosta igraca ga trazi na serveru,ako treba platicu.
    Donate points,da igraci jedni drugima salju poene,imao sam jedan na serveru,ali ja posaljem igracu 50 poena,meni skine 30 a njemu da 200

  4. #4
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    11

    Default

    Otvori novu temu i kazi o kakvim se poenima radi.
    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •