←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

plugin slay za niewykonywanie celów mapy!?

Zablokowany

  • +
  • -
PimPmYSerWer - zdjęcie PimPmYSerWer 08.10.2009

Witam proszę o pomoc szukam i znaleźć nie mogę , bo potrzebuję takie cudo :D

Slay ja niewykonywanie celów mapy! :D

Dam pomógł :D

Pozdraiwam
Odpowiedz

  • +
  • -
zer0. - zdjęcie zer0. 08.10.2009

#include <amxmodx>



#define PLUGIN "Anti TeamPlay Slay"

#define VERSION "1.0"

#define AUTHOR "Sn!ff3r"



#define T 1

#define CT 2



new g_score[2];



public plugin_init() {

    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_event("TeamScore","end_round","a");

    register_event( "TextMsg", "Restore", "a", "2&#Game_will_restart_in" );

    register_event("TextMsg", "Restore", "a", "2&#Game_C")

}

public Restore()

{

    g_score[0]=0;

    g_score[1]=0;

}

public end_round()

{

    new teamname[3],score;

    read_data(1,teamname,2);

    score=read_data(2);

    if(equal(teamname,"CT"))

    {

        if(g_score[CT-1]!=score)

        {

            slay(T);

        }

        g_score[CT-1]=score;

    }

    else

    {

        if(g_score[T-1]!=score)

        {

            slay(CT);

        }

        g_score[T-1]=score;

    }

}



public slay(team)

{

    new Players[32], playerCount;

    get_players(Players, playerCount);

    for (new i=0; i<playerCount; i++) {

        new id = Players[i];

        if(get_user_team(id)==team && is_user_alive(id))

        {

            user_kill(id)

            client_print(id,print_chat,"!!! Wykonuj cele mapy !!!")

            set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 5.0)

            show_hudmessage(id, "!!! Wykonuj cele mapy !!!")     

        }

    }

}
Odpowiedz

  • +
  • -
PimPmYSerWer - zdjęcie PimPmYSerWer 08.10.2009

co mam z tym zrobić ,że się tak wyraże? skompilować?
czy co ?:D
Odpowiedz

  • +
  • -
zer0. - zdjęcie zer0. 08.10.2009

skompilować?

Bingo!
Odpowiedz

  • +
  • -
PimPmYSerWer - zdjęcie PimPmYSerWer 08.10.2009

Dzięki :D czyli .sma nie jest potrzebny? w scripting?

[ Dodano: 08-10-2009, 20:35 ]
chyba tez sma musi być daj mi jak możesz PLX XLXLXLXLXL :D proszę Cię:D
Odpowiedz

  • +
  • -
Abes Mapper - zdjęcie Abes Mapper 08.10.2009

Ten kod co dał zer0., wklejasz tutaj:
http://amxx.pl/kompilator.php

I niżej naciskasz na "Kompiluj"
Odpowiedz

  • +
  • -
PimPmYSerWer - zdjęcie PimPmYSerWer 09.10.2009

nawet jak skompiluję to nie odpala ;/
Odpowiedz

  • +
  • -
rzulf - zdjęcie rzulf 09.10.2009

Wrzuciłeś do addons/amxmodx/plugins ?. I dopisałeś nazwę pluginu do configs/plugins ?. Jeżeli tak to sprawdź w konsoli serwera jakie błędy Ci wyskakują jak wrzucasz ten plugin i wklej je tutaj.
Odpowiedz
Zablokowany