Approved No Entities Block

Useless Stuffs, Spam ... etc
Post Reply
User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 664
Joined: 3 Years Ago
Location: Egypt
Has thanked: 38 times
Been thanked: 52 times
Age: 20
Contact:

No Entities Block

#1

Post by Mohamed Alaa » 3 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:
These users thanked the author Mohamed Alaa for the post (total 4):
sam_bhosale4 (3 Years Ago) • Raheem (3 Years Ago) • Turnedo (3 Years Ago) • johnnysins2000 (2 Years Ago)
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2028
Joined: 3 Years Ago
Location: Egypt
Has thanked: 39 times
Been thanked: 120 times
Age: 22
Contact:

#2

Post by Raheem » 3 Years Ago

Great job....... So nice. Missing fix for years and it's finally out....

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 3 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 23
Contact:

#3

Post by johnnysins2000 » 3 Years Ago

Thank You very Much Jack

I will try this plugin Now :)
Nobody Is That Busy If They Make Time :roll:

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 3 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 22
Contact:

#4

Post by sam_bhosale4 » 3 Years Ago

Jack GamePlay wrote:
3 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("[ZE] Addons: No Block", "1.0", "Jack GamePlay")
    14.     register_forward(FM_Touch, "Fw_Touch")
    15. }
    16.  
    17. public Fw_Touch(iEnt, id)
    18. {
    19.     // Not alive or Wrong entity
    20.     if(!is_user_alive(id) || !pev_valid(iEnt))
    21.         return FMRES_IGNORED    // Block below code
    22.        
    23.     new szClassName[32] // Variable to store entity's name.
    24.     pev(iEnt, pev_classname, szClassName, charsmax(szClassName))
    25.    
    26.     // Loop though all the 2d array
    27.     for(new i = 1; i <= charsmax(szEntities); i++)
    28.     {
    29.         // If the same...
    30.         if (equal(szClassName, szEntities[i]))
    31.         {
    32.             // Block blocking
    33.             set_pev(id, pev_solid, SOLID_TRIGGER)
    34.             return FMRES_IGNORED
    35.         }
    36.     }
    37.     return FMRES_IGNORED
    38. }
Downloads:
  • [ZE] No Block.zip
Very well done jack!
Ill soon test it on my server! :)
+like +karma
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2028
Joined: 3 Years Ago
Location: Egypt
Has thanked: 39 times
Been thanked: 120 times
Age: 22
Contact:

#5

Post by Raheem » 3 Years Ago

Don't use this plugin for now till it be fixed. Locked Temporarily.

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 664
Joined: 3 Years Ago
Location: Egypt
Has thanked: 38 times
Been thanked: 52 times
Age: 20
Contact:

#6

Post by Mohamed Alaa » 3 Years Ago

We have tried to fix crash & make the plugin better but we have failed.
This topic will be trashed.
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2028
Joined: 3 Years Ago
Location: Egypt
Has thanked: 39 times
Been thanked: 120 times
Age: 22
Contact:

#7

Post by Raheem » 3 Years Ago

Fixed, While i was reading HAM hooks i found a function that can hook the block but it's too late to block the event itself so i do good thing for blockers... Try it.
These users thanked the author Raheem for the post (total 2):
Mohamed Alaa (3 Years Ago) • Turnedo (3 Years Ago)

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 3 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 22
Contact:

#8

Post by sam_bhosale4 » 3 Years Ago

Raheem wrote:
3 Years Ago
Fixed, While i was reading HAM hooks i found a function that can hook the block but it's too late to block the event itself so i do good thing for blockers... Try it.
cool ill try!
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 3 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 23
Contact:

#9

Post by johnnysins2000 » 3 Years Ago

sam_bhosale4 wrote:
3 Years Ago
Raheem wrote:
3 Years Ago
Fixed, While i was reading HAM hooks i found a function that can hook the block but it's too late to block the event itself so i do good thing for blockers... Try it.
cool ill try!
good after trying tell me what does it do
Nobody Is That Busy If They Make Time :roll:

User avatar
sam_bhosale4
Mod Tester
Mod Tester
India
Posts: 109
Joined: 3 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 22
Contact:

#10

Post by sam_bhosale4 » 3 Years Ago

acc to me it must give few amount of damage to the one who is blocking the entity otherwise he will die after few sec! lets see :D
-=SeRious-GaminG|Zombie Escape[Alien vs. Predator]|Asia=-
206.189.132.169:40000
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest