Raised This Month: $ Target: $400
 0% 

[SOLVED] fix nightmare mode!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-22-2015 , 16:43   [SOLVED] fix nightmare mode!
Reply With Quote #1

hi guys, i want fix this codes:

PHP Code:
else if ((mode == MODE_NONE && (g_lastmode != MODE_NIGHT) && random_num(130) == && floatround(iPlayersnum*0.4floatround_ceil) >= && floatround(iPlayersnum*0.4floatround_ceil) < iPlayersnum && iPlayersnum >= 4) || mode == MODE_NIGHT)
{        
// Nightmare Mode
g_nightround true
g_lastmode 
MODE_NIGHT

// iMaxZombies is rounded up, in case there aren't enough players
iMaxZombies floatround(iPlayersnum*0.4floatround_ceil)
iZombies 0

// Randomly turn iMaxZombies players into nemesis
while (iZombies iMaxZombies)
{
// Keep looping through all players
if (++id g_maxplayersid 1

// Dead or already a nemesis
if (!g_isalive[id] || g_nemesis[id])
continue;

// Random chance
if (random_num(01))
{
// Turn into a nemesis
zombieme(id01000)
iZombies++        

// Apply nemesis health 
fm_set_user_health(id90000)
}
}

iZombies 0

// Randomly turn iMaxZombies players into assassins
while (iZombies iMaxZombies)
{
// Keep looping through all players
if (++id g_maxplayersid 1

// Dead or already a nemesis/assassin
if (!g_isalive[id] || g_nemesis[id] || g_assassin[id])
continue;

// Random chance
if (random_num(01))
{
// Turn into an assassin
zombieme(id00100)
iZombies++        

// Apply assassin health 
fm_set_user_health(id30000)
}
}

iZombies 0

// Randomly turn iMaxZombies players into survivors
while (iZombies iMaxZombies)
{
// Keep looping through all players
if (++id g_maxplayersid 1

// Dead or already a nemesis/assassin/survivor
if (!g_isalive[id] || g_nemesis[id] || g_assassin[id] || g_survivor[id])
continue;

// Random chance
if (random_num(01))
{
// Turn into a survivor
humanme(id100)
iZombies++        

// Apply survivor health 
fm_set_user_health(id12000)
}
}

// Turn the remaining players into snipers
for (id 1id <= g_maxplayersid++)
{
// Only those of them who aren't nemesis/assassin/survivor/sniper
if (!g_isalive[id] || g_nemesis[id] || g_assassin[id] || g_survivor[id] || g_sniper[id])
continue;

// If not, turn him into one
humanme(id010)            

// Apply sniper health 
fm_set_user_health(id10000)                                        
}        

// Play nightmare sound
ArrayGetString(sound_nightmarerandom_num(0ArraySize(sound_nightmare) - 1), soundcharsmax(sound))
PlaySound(sound);

// Show Nightmare HUD notice
set_hudmessage(2552020HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
ShowSyncHudMsg(0g_MsgSync"Nightmare Round !!!")        

// Mode fully started!
g_modestarted true

// Round start forward
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_NIGHT0);

when the nightmare start the server crashed :/
what the problem with this codes??
__________________

Last edited by arvEL.; 12-23-2015 at 07:15.
arvEL. is offline
Send a message via Skype™ to arvEL.
 


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 17:56.


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