/************************************************************\| Customizations Section || You can edit here according to your liking |\************************************************************/

// This is the chance value according to which this game mode will be called// The higher the value the lesser the chance of calling this game modenew const g_chance = 20

// This is the access flag required to start the game mode// through the admin menu. Look in users.ini for more detailsnew const g_access_flag[] = "l"

// This is the sound which is played when the game mode is triggered// Add as many as you want [Randomly chosen if more than one]new const g_play_sounds[][] ={"zombie_plague/nemesis1.wav" ,"zombie_plague/survivor1.wav"}

// Comment the following line to disable ambience sounds// Just add two slashes ( // )#define AMBIENCE_SOUNDS

/************************************************************\| Customizations Ends Here..!! || You can edit the cvars in the plugin init |\************************************************************/

// Player spawn post// Player spawn postpublic zp_player_spawn_post( id ){// Check for current modeif( zp_get_current_mode() == g_gameid ){// Check if the player is a zombieif( zp_get_user_zombie( id ))

switch(random_num(1,4)){case 1:{// Make him an assassin insteadzp_make_user_assassin( id )

// Set his healthset_user_health( id, floatround(get_user_health(id) * get_pcvar_float(cvar_assahp)) )}case 2:{// Make him a sniperzp_make_user_sniper( id )

// Set his healthset_user_health( id, floatround(get_user_health(id) * get_pcvar_float(cvar_sniperhp)) )}case 3:{// Make him a sniperzp_make_user_nemesis( id )

// Set his healthset_user_health( id, floatround(get_user_health(id) * get_pcvar_float(cvar_nemhp)) )}case 4:{// Make him a sniperzp_make_user_survivor( id )

public zp_round_started_pre( game ){// Check if it is our game modeif( game == g_gameid ){// Check for min playersif( fn_get_alive_players() < get_pcvar_num(cvar_minplayers) ){/*** Note:* This very necessary, you should return ZP_PLUGIN_HANDLED if* some conditions required by your game mode are not met* This will inform the main plugin that you have rejected* the offer and so the main plugin will allow other game modes* to be given a chance*/return ZP_PLUGIN_HANDLED}// Start our new modestart_night_mode( )}// Make the compiler happy =)return PLUGIN_CONTINUE}

// Turn the remaining players into snipersfor (id = 1; id <= g_maxplayers; id++){// Only those of them who are alive and are not assassinsif ( !is_user_alive(id) || zp_get_user_assassin(id) || zp_get_user_nemesis(id))continue;