Hello AlliedModders i have a problem with scripting! i want too add sniper and assassin round check! So i have this plugin:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague2>
/*================================================================================
[Constants, Offsets, Macros]
=================================================================================*/
// Plugin Version
new const PLUGIN_VERSION[] = "1.0.0"
/*================================================================================
[Global Variables]
=================================================================================*/
// Game vars
new g_iMaxPlayers // max player counter
new g_HudSync
new g_bNemesis // Nemesis round
new g_bSurvivor // Survivor round
new g_bAssassin // Nemesis round
new g_bSniper // Survivor round
/*================================================================================
[Init]
=================================================================================*/
public plugin_init()
{
register_plugin("Zombie Plague Stats", PLUGIN_VERSION, "Serjaka")
RegisterHam(Ham_Killed, "player", "Ham_Killed_Post", 1)
g_iMaxPlayers = get_maxplayers()
g_HudSync = CreateHudSyncObj()
}
/*================================================================================
[Main Forwards]
=================================================================================*/
public zp_round_started(mode, player)
{
switch (mode)
{
case MODE_NEMESIS: g_bNemesis = true;
case MODE_SURVIVOR: g_bSurvivor = true;
case MODE_ASSASSIN: g_bAssassin = true;
case MODE_SNIPER: g_bSniper = true;
}
}
public Ham_Killed_Post(victim, attacker, gib)
{
display_enemy_remaining()
}
public zp_user_humanized_post(id, survivor)
{
display_enemy_remaining()
}
public zp_user_infected_post(id, infector, nemesis)
{
display_enemy_remaining()
}
I want to add assassin and sniper round check too, i write this in code but it doesnt work (Error : you alredy difine...)
PHP Code:
public zp_user_humanized_post(id, sniper)
{
display_enemy_remaining()
}
PHP Code:
public zp_user_infected_post(id, infector, assassin)
{
display_enemy_remaining()
}
i got error too If i add
PHP Code:
public zp_user_infected_post(id, infector, assassin, nemesis)
and
PHP Code:
public zp_user_humanized_post(id, sniper, survivor)
help me please to fix this ! i need for sniper and assassin round too ! THX! Sorry for my bad English!