[ZP] Как сделать случайный выбор Zombie class?

В данный статье, я расскажу как можно отключить выбор зомби классов и сделать случайный выбор для zombie plague 4.3!

Если хотим что бы игроки не могли выбирать классы зомби, то идем в:
cstrike\addons\amxmodx\configs\zombieplague.cfg

и находим квар:
zp_zombie_classes 1

меняем на
zp_zombie_classes 0

Дальше открываем zombie_plague40.sma (исходник вашего ZP) и находим функцию
zombieme(id, infector, nemesis, silentmode, rewards)

Заменяем этот код:
g_zombieclass[id] = g_zombieclassnext[id]

на этот:
g_zombieclass[id] = random_num(0, ArraySize(g_zclass_name) - 1)

Hello, Our administration publishes only cannon content, put like under the post below and write the top comment, we are preparing the material just for you, Darling Гость.

Comments 6
  1. Predator
    Старая очень тема!
    • 1 April 2018 17:32
  2. Shake12
    Predator,
    Зато полезная ! 
    • 2 April 2018 12:25
  3. MaLiBoo
    MaLiBoo
    • +1
    Старая но полезная )

    • 2 April 2018 13:29
  4. Mr.Bagamut
    а как сделать чтобы не выбирало вип или админ зомби
    • 2 April 2018 21:07
  5. Neon
    Neon
    • 0
    thanks niceinfsaa
    • 11 May 2018 11:30
  6. Nolkeee
    Хорошая статья для начинающих.
    • 5 September 2018 14:27
Users belonging to group Guests cannot add comments to this article.
Base for Your Build
Information

Welcome to TB-TEAM.COM!

To become a full-fledged user of our portal, you need to register.
Register
Create your own account!

Register Now
Log In
Already registered? Go ahead and log in!

Log In