Approved No Entities Block

Useless Stuffs, Spam ... etc
User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

Re: No Entities Block

#61

Post by Muhammet20 » 9 Months Ago

Jack GamePlay wrote:
2 Years Ago
No Entities Block

Description:
  • I'm here with a new plugin which will block players from blocking things such as train, car, plane, door, etc..
    Plugin was tested on public server.
Code:
    1. #include <zombie_escape>
    2.  
    3. new const szEntities[][] =
    4. {
    5.     "func_train",
    6.     "func_vehicle",
    7.     "func_tracktrain",
    8.     "func_door"
    9. }
    10.  
    11. public plugin_init()
    12. {
    13.     register_plugin("No Block", "1.0", "Raheem")
    14.  
    15.     for (new i = 0; i < charsmax(szEntities); i++)
    16.     {
    17.         RegisterHam(Ham_Blocked, szEntities[i], "Fw_Blocked_Post", 1)
    18.     }
    19. }
    20.  
    21. public Fw_Blocked_Post(iEnt, id)
    22. {
    23.     if (is_user_alive(id) && pev_valid(iEnt))
    24.     {
    25.         new Float:flVelocity[3]
    26.  
    27.         velocity_by_aim(id, 550, flVelocity)
    28.  
    29.         flVelocity[0] += 20.0
    30.         flVelocity[1] += 20.0
    31.         flVelocity[2] += 20.0
    32.  
    33.         set_entvar(id, var_velocity, flVelocity)
    34.     }
    35. }
Downloads:
  • [ZE] No Block.zip
hey jack
man its not working
please help me man
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 202
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 20
Contact:

#62

Post by sPe3doN » 9 Months Ago

Muhammet20 wrote:
9 Months Ago
Jack GamePlay wrote:
2 Years Ago
No Entities Block

Description:
  • I'm here with a new plugin which will block players from blocking things such as train, car, plane, door, etc..
    Plugin was tested on public server.
Code:
    1. #include <zombie_escape>
    2.  
    3. new const szEntities[][] =
    4. {
    5.     "func_train",
    6.     "func_vehicle",
    7.     "func_tracktrain",
    8. }
    9.  
    10. public plugin_init()
    11. {
    12.     register_plugin("No Block", "1.0", "Raheem")
    13.  
    14.     for (new i = 0; i < charsmax(szEntities); i++)
    15.     {
    16.         RegisterHam(Ham_Blocked, szEntities[i], "Fw_Blocked_Post", 1)
    17.     }
    18. }
    19.  
    20. public Fw_Blocked_Post(iEnt, id)
    21. {
    22.     if (is_user_alive(id) && pev_valid(iEnt))
    23.     {
    24.         new Float:flVelocity[3]
    25.  
    26.         velocity_by_aim(id, 550, flVelocity)
    27.  
    28.         flVelocity[0] += 20.0
    29.         flVelocity[1] += 20.0
    30.         flVelocity[2] += 20.0
    31.  
    32.         set_entvar(id, var_velocity, flVelocity)
    33.     }
    34. }
Downloads:
  • [ZE] No Block.zip
hey jack
man its not working
please help me man
Try this

Code: Select all

#include <zombie_escape>

new Float:g_flPlayed[33]
 
new const szEntities[][] =
{
    "func_train",
    "func_vehicle",
    "func_tracktrain",
}
 
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))
		{
			PlaySound(id, "zombie_escape/move.wav")
			g_flPlayed[id] = get_gametime();
		}
    {
        if(g_flLastBlock[id] > flRefTime)
            return
       
        g_flLastBlock[id] = flRefTime + get_pcvar_float(g_pCvarBlockTime)
           
		if (ze_is_user_zombie(id))
		{
			ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 2000.0, DMG_GENERIC)
		}

		else
		{
			ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 15.0, DMG_GENERIC)
		}

        client_print(id, print_center, "STOP BLOCK!! MOVE")
       
        switch (g_iPulsating)
        {
            case 0:
            {
                Set_Rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 10)
                g_iPulsating = 1
            }
            case 1:
            {
                Set_Rendering(id)
                g_iPulsating = 0
            }
        }
    }
}

[ Post made via Android ]

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#63

Post by Raheem » 9 Months Ago

Blocking moving entities can't be done anymore at latest ReHLDS, so this not needed anymore.
You don't know? Learn and you will know.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#64

Post by Muhammet20 » 9 Months Ago

sPe3doN wrote:
9 Months Ago
Muhammet20 wrote:
9 Months Ago
Jack GamePlay wrote:
2 Years Ago
No Entities Block

Description:
  • I'm here with a new plugin which will block players from blocking things such as train, car, plane, door, etc..
    Plugin was tested on public server.
Code:
    1. #include <zombie_escape>
    2.  
    3. new const szEntities[][] =
    4. {
    5.     "func_train",
    6.     "func_vehicle",
    7.     "func_tracktrain",
    8. }
    9.  
    10. public plugin_init()
    11. {
    12.     register_plugin("No Block", "1.0", "Raheem")
    13.  
    14.     for (new i = 0; i < charsmax(szEntities); i++)
    15.     {
    16.         RegisterHam(Ham_Blocked, szEntities[i], "Fw_Blocked_Post", 1)
    17.     }
    18. }
    19.  
    20. public Fw_Blocked_Post(iEnt, id)
    21. {
    22.     if (is_user_alive(id) && pev_valid(iEnt))
    23.     {
    24.         new Float:flVelocity[3]
    25.  
    26.         velocity_by_aim(id, 550, flVelocity)
    27.  
    28.         flVelocity[0] += 20.0
    29.         flVelocity[1] += 20.0
    30.         flVelocity[2] += 20.0
    31.  
    32.         set_entvar(id, var_velocity, flVelocity)
    33.     }
    34. }
Downloads:
  • [ZE] No Block.zip
hey jack
man its not working
please help me man
Try this

Code: Select all

#include <zombie_escape>

new Float:g_flPlayed[33]
 
new const szEntities[][] =
{
    "func_train",
    "func_vehicle",
    "func_tracktrain",
}
 
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))
		{
			PlaySound(id, "zombie_escape/move.wav")
			g_flPlayed[id] = get_gametime();
		}
    {
        if(g_flLastBlock[id] > flRefTime)
            return
       
        g_flLastBlock[id] = flRefTime + get_pcvar_float(g_pCvarBlockTime)
           
		if (ze_is_user_zombie(id))
		{
			ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 2000.0, DMG_GENERIC)
		}

		else
		{
			ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 15.0, DMG_GENERIC)
		}

        client_print(id, print_center, "STOP BLOCK!! MOVE")
       
        switch (g_iPulsating)
        {
            case 0:
            {
                Set_Rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 10)
                g_iPulsating = 1
            }
            case 1:
            {
                Set_Rendering(id)
                g_iPulsating = 0
            }
        }
    }
}

man its not working please help me about this plugin
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#65

Post by Muhammet20 » 9 Months Ago

Raheem wrote:
9 Months Ago
Blocking moving entities can't be done anymore at latest ReHLDS, so this not needed anymore.
i dont understand you
can you repeat please ?
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#66

Post by Raheem » 8 Months Ago

I mean this plugin not needed anymore because in latest ReHLDS you can't block moving entities.
You don't know? Learn and you will know.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#67

Post by Muhammet20 » 8 Months Ago

Raheem wrote:
8 Months Ago
I mean this plugin not needed anymore because in latest ReHLDS you can't block moving entities.
no no , i don't mean blocking entities from moving
i mean , if someone holding an entity damage him / her
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 609
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#68

Post by Mohamed Alaa » 8 Months Ago

As in the latest version of ReHLDS, this kind of blocks has been fixed so this plugin is no more useful.
Trashed.
Want your own mod edition? PM me.
Accepting web projects.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest