Unpaid Requests, Public Plugins
-
sPe3doN
- Senior Member
- Posts: 258
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#1
Post
by sPe3doN » 5 years ago
can som one edit this i want when zombie block he get -2000hp
Code: Select all
#include <zombie_escape>
new const szEntities[][] =
{
"func_train",
"func_vehicle",
"func_tracktrain",
"func_door"
}
new g_iPulsating = 0, Float:g_flLastBlock[33]
// Cvars
new g_pCvarBlockTime
public plugin_init()
{
register_plugin("No Block", "1.0", "Raheem")
// Cvars
g_pCvarBlockTime = register_cvar("ze_block_time", "1.5")
for (new i = 0; i <= charsmax(szEntities); i++)
{
RegisterHam(Ham_Blocked, szEntities[i], "Fw_Blocked_Post", 1)
}
}
public Fw_Blocked_Post(iEnt, id)
{
new Float:flRefTime = get_gametime()
if (is_user_alive(id) && pev_valid(iEnt))
{
if(g_flLastBlock[id] > flRefTime)
return
g_flLastBlock[id] = flRefTime + get_pcvar_float(g_pCvarBlockTime)
ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 10.0, DMG_GENERIC)
client_print(id, print_center, "Stop BLOCK!!!")
switch (g_iPulsating)
{
case 0:
{
Set_Rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 40)
g_iPulsating = 1
}
case 1:
{
Set_Rendering(id)
g_iPulsating = 0
}
}
}
}
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#2
Post
by Night Fury » 5 years ago
Try:
Code: Select all
#include <zombie_escape>
new const szEntities[][] =
{
"func_train",
"func_vehicle",
"func_tracktrain",
"func_door"
}
new g_iPulsating = 0, Float:g_flLastBlock[33]
// Cvars
new g_pCvarBlockTime
public plugin_init()
{
register_plugin("No Block", "1.0", "Raheem")
// Cvars
g_pCvarBlockTime = register_cvar("ze_block_time", "1.5")
for (new i = 0; i <= charsmax(szEntities); i++)
{
RegisterHam(Ham_Blocked, szEntities[i], "Fw_Blocked_Post", 1)
}
}
public Fw_Blocked_Post(iEnt, id)
{
new Float:flRefTime = get_gametime()
if (is_user_alive(id) && pev_valid(iEnt))
{
if(g_flLastBlock[id] > flRefTime)
return
g_flLastBlock[id] = flRefTime + get_pcvar_float(g_pCvarBlockTime)
ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 10.0, DMG_GENERIC)
if (ze_is_user_zombie(id))
{
set_entvar(id, var_health, get_entvar(id, var_health) - 2000.0)
}
client_print(id, print_center, "Stop BLOCK!!!")
switch (g_iPulsating)
{
case 0:
{
Set_Rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 40)
g_iPulsating = 1
}
case 1:
{
Set_Rendering(id)
g_iPulsating = 0
}
}
}
}
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
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
Register
Sign in
Users browsing this forum: No registered users and 5 guests