Raised This Month: $183 Target: $400
 45% 

[ZP 5.0.8] How to disable infection on boss map?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Volodya_MEGAlodon
New Member
Join Date: Jan 2021
Old 01-11-2021 , 21:35   [ZP 5.0.8] How to disable infection on boss map?
Reply With Quote #1

Hi guys, i have trouble with boss map on ZP 5.0.8. How can i disable infection on this map? I found manuals to do it on ZP 4.3, but i don't understand how to do it with zp 5.0.8. Plz help me(
CODE for zp 4.3

1. Create new variable
new boss_map

2. Next add this to plugin_init
new MapName[64]
get_mapname(MapName, 63)

if(contain(MapName, "YOUR MAP HERE" ) != -1)
boss_map = 1
else
boss_map = 0

3. AND LAST
This:
// Not enough players, come back later!
if (iPlayersnum < 1 || boss_map)
{
set_task(2.0, "make_zombie_task", TASK_MAKEZOMBIE)
return;
}

Instead this:
// Not enough players, come back later!
if (iPlayersnum < 1)
{
set_task(2.0, "make_zombie_task", TASK_MAKEZOMBIE)
return;
}
Attached Files
File Type: sma Get Plugin or Get Source (zp50_gamemodes (2).sma - 41 views - 18.0 KB)
Volodya_MEGAlodon is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:48.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode