Win msg
Win msg
Hello
Rheem can you made msg show for humans when they win like this
X humans win you have got x frags
if we say there is 15 humans escape and my lvl 25
15 humans win you have got 25 frags
Rheem can you made msg show for humans when they win like this
X humans win you have got x frags
if we say there is 15 humans escape and my lvl 25
15 humans win you have got 25 frags
The base plugin here: viewtopic.php?f=17&t=3402
Set this cvar to 0 if needed:
- #include <zombie_escape>
- #include <ze_levels>
- // Variables
- new g_iMaxClients
- // Cvars
- new g_pCvarHumanInfectedFrags,
- g_pCvarEscapeSuccessFrags,
- g_pCvarInfectionDeaths
- public plugin_init()
- {
- register_plugin("[ZE] Frags Awards/Death Effects", ZE_VERSION, AUTHORS)
- // Cvars
- g_pCvarHumanInfectedFrags = register_cvar("ze_human_infected_frags", "1")
- g_pCvarInfectionDeaths = register_cvar("ze_infection_deaths", "1")
- g_pCvarEscapeSuccessFrags = register_cvar("ze_escape_success_frags", "3")
- // Static Values
- g_iMaxClients = get_member_game(m_nMaxPlayers)
- }
- public ze_user_infected(iVictim, iInfector)
- {
- if (iInfector == 0) // Block Awards for Zombies Chosen by the Server
- return
- // Award Zombie Who infected, And Increase Deaths of the infected human
- UpdateFrags(iInfector, iVictim, get_pcvar_num(g_pCvarHumanInfectedFrags), get_pcvar_num(g_pCvarInfectionDeaths), 1)
- // Adding Infection icon on Victim Screen
- InfectionIcon(iVictim)
- // Fix Dead Attribute (Delay needed)
- set_task(0.1, "Fix_DeadAttrib", _, _, _, "a", 6)
- }
- public ze_roundend(WinTeam)
- {
- if (WinTeam == ZE_TEAM_HUMAN)
- {
- new iAliveCTNum
- for (new i = 1; i <= g_iMaxClients; i++)
- {
- // Skip All Dead Players or Zombies
- if (!is_user_alive(i) || get_member(i, m_iTeam) == TEAM_TERRORIST)
- continue
- // + Frags for All humans Who are Alive
- UpdateFrags(i, 0, ze_get_user_level(i), 0, 1)
- iAliveCTNum = GetAlivePlayersNum(CsTeams:TEAM_CT)
- ze_colored_print(i, "!g%i !tHumans Win!y! !tYou have got !g%i !tfrags!y!", iAliveCTNum, ze_get_user_level(i))
- }
- }
- }
- public Fix_DeadAttrib()
- {
- for (new i = 1; i <= g_iMaxClients; i++)
- {
- // Skip All Dead And Humans
- if (!is_user_alive(i) || get_member(i, m_iTeam) == TEAM_CT)
- continue
- // Fix the Dead Attribute
- FixDeadAttrib(i)
- }
- }
Set this cvar to 0 if needed:
ze_earn_chat_notice 0
(Coins System earn notice)He who fails to plan is planning to fail
When Some one level 1 will win then will get 1 frags for 3?Raheem wrote: ↑5 years ago The base plugin here: viewtopic.php?f=17&t=3402
#include <zombie_escape> #include <ze_levels> // Variables new g_iMaxClients // Cvars new g_pCvarHumanInfectedFrags, g_pCvarEscapeSuccessFrags, g_pCvarInfectionDeaths public plugin_init() { register_plugin("[ZE] Frags Awards/Death Effects", ZE_VERSION, AUTHORS) // Cvars g_pCvarHumanInfectedFrags = register_cvar("ze_human_infected_frags", "1") g_pCvarInfectionDeaths = register_cvar("ze_infection_deaths", "1") g_pCvarEscapeSuccessFrags = register_cvar("ze_escape_success_frags", "3") // Static Values g_iMaxClients = get_member_game(m_nMaxPlayers) } public ze_user_infected(iVictim, iInfector) { if (iInfector == 0) // Block Awards for Zombies Chosen by the Server return // Award Zombie Who infected, And Increase Deaths of the infected human UpdateFrags(iInfector, iVictim, get_pcvar_num(g_pCvarHumanInfectedFrags), get_pcvar_num(g_pCvarInfectionDeaths), 1) // Adding Infection icon on Victim Screen InfectionIcon(iVictim) // Fix Dead Attribute (Delay needed) set_task(0.1, "Fix_DeadAttrib", _, _, _, "a", 6) } public ze_roundend(WinTeam) { if (WinTeam == ZE_TEAM_HUMAN) { new iAliveCTNum for (new i = 1; i <= g_iMaxClients; i++) { // Skip All Dead Players or Zombies if (!is_user_alive(i) || get_member(i, m_iTeam) == TEAM_TERRORIST) continue // + Frags for All humans Who are Alive UpdateFrags(i, 0, ze_get_user_level(i), 0, 1) iAliveCTNum = GetAlivePlayersNum(CsTeams:TEAM_CT) ze_colored_print(i, "!g%i !tHumans Win!y! !tYou have got !g%i !tfrags!y!", iAliveCTNum, ze_get_user_level(i)) } } } public Fix_DeadAttrib() { for (new i = 1; i <= g_iMaxClients; i++) { // Skip All Dead And Humans if (!is_user_alive(i) || get_member(i, m_iTeam) == TEAM_CT) continue // Fix the Dead Attribute FixDeadAttrib(i) } }
Set this cvar to 0 if needed:ze_earn_chat_notice 0
(Coins System earn notice)
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
this message not work Humans Win! You have got frags!
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
Still not working for you?
He who fails to plan is planning to fail
Can you tell me which is not working? It's not giving the right frags or the message? Explain in details.
Try recompile and installing latest levels system and check.
Try recompile and installing latest levels system and check.
He who fails to plan is planning to fail
frags is working 100%
but when escape success this simple message not show ..!
but when escape success this simple message not show ..!
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
- #include <zombie_escape>
- #include <ze_levels>
- // Variables
- new g_iMaxClients
- // Cvars
- new g_pCvarHumanInfectedFrags,
- g_pCvarEscapeSuccessFrags,
- g_pCvarInfectionDeaths
- public plugin_init()
- {
- register_plugin("[ZE] Frags Awards/Death Effects", ZE_VERSION, AUTHORS)
- // Cvars
- g_pCvarHumanInfectedFrags = register_cvar("ze_human_infected_frags", "1")
- g_pCvarInfectionDeaths = register_cvar("ze_infection_deaths", "1")
- g_pCvarEscapeSuccessFrags = register_cvar("ze_escape_success_frags", "3")
- // Static Values
- g_iMaxClients = get_member_game(m_nMaxPlayers)
- }
- public ze_user_infected(iVictim, iInfector)
- {
- if (iInfector == 0) // Block Awards for Zombies Chosen by the Server
- return
- // Award Zombie Who infected, And Increase Deaths of the infected human
- UpdateFrags(iInfector, iVictim, get_pcvar_num(g_pCvarHumanInfectedFrags), get_pcvar_num(g_pCvarInfectionDeaths), 1)
- // Adding Infection icon on Victim Screen
- InfectionIcon(iVictim)
- // Fix Dead Attribute (Delay needed)
- set_task(0.1, "Fix_DeadAttrib", _, _, _, "a", 6)
- }
- public ze_roundend(WinTeam)
- {
- if (WinTeam == ZE_TEAM_HUMAN)
- {
- new i, iAliveCTNum = GetAlivePlayersNum(CsTeams:TEAM_CT)
- for (i = 1; i <= g_iMaxClients; i++)
- {
- // Skip All Dead Players or Zombies
- if (!is_user_alive(i) || ze_is_user_zombie(i))
- continue
- // + Frags for All humans Who are Alive
- UpdateFrags(i, 0, ze_get_user_level(i), 0, 1)
- ze_colored_print(i, "!g%i !tHumans Win!y! !tYou have got !g%i !tfrags!y!", iAliveCTNum, ze_get_user_level(i))
- }
- }
- }
- public Fix_DeadAttrib()
- {
- for (new i = 1; i <= g_iMaxClients; i++)
- {
- // Skip All Dead And Humans
- if (!is_user_alive(i) || !ze_is_user_zombie(i))
- continue
- // Fix the Dead Attribute
- FixDeadAttrib(i)
- }
- }
+ Message should show only for alive Humans. You should be alive Human to see it.
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 5 guests