AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ZP 5.0.8] How to disable infection on boss map? (https://forums.alliedmods.net/showthread.php?t=329886)

Volodya_MEGAlodon 01-11-2021 20:35

[ZP 5.0.8] How to disable infection on boss map?
 
1 Attachment(s)
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;
}


All times are GMT -4. The time now is 14:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.