Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSSZP 5.0 Nemesis Round FreezeTime


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hello!

I have request if anyone wants to help or provide me a favor. :oops:

1) so basically i still learn how codes works as you can see i tried to make nemesis freeze for 10 second before he attack, but the problem is humans can shoot him while he still frozen and this is can effect him and lose so much hp.
2) Also before gamemode start at countdown, player can be nemesis in anywhere he is like in water or ladders or even hide places.

Request : i wanna make nemesis can't take any damage/shoots while he's still frozen and teleport in spawn places when user get nemesis

is this possible?



HTML Code:

#include <amxmodx>
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <dhudmessage>
#include <zp50_class_nemesis>
#include <zombieplague>

new float: g_fPlayer[33]
new g_fTime


public plugin_init()
{
        register_plugin("Freeze First Nemesis", "1.0", "Hn.S")
        g_fTime = register_cvar("zp_nemesis_freezetime", "10.0")
        RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
        RegisterHam(Ham_Killed, "player", "fw_PlayerKilled", 1)
}
// Freeze Nemesis
public zp_fw_core_infect_post(id)
{   
        if(is_user_alive(id) && zp_get_user_nemesis(id))
        {
                g_fPlayer[id] = get_user_maxspeed(id)
                set_user_maxspeed(id, 1.0)
                set_task(get_pcvar_float(g_fTime), "UnFreeze", id)
        }   
}     
// Unfreeze user
public UnFreeze(id)
{
        set_user_maxspeed(id, g_fPlayer[id])
        set_dhudmessage(255, 0, 0, -1.0, 0.4)
        show_dhudmessage(0, "The Nemesis is released!^nRun for your lives!")
}


Attached Files
File Type: sma Get Plugin or Get Source (zp50_addons_freeze_nemesis.sma - 926 Bytes)

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...