Approved No Entities Block

Useless Stuffs, Spam ... etc
Post Reply
User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 576
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 47 times
Age: 19
Contact:

No Entities Block

#1

Post by Jack GamePlay » 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:
These users thanked the author Jack GamePlay for the post (total 4):
sam_bhosale4 (2 Years Ago) • Raheem (1 Year Ago) • Turnedo (1 Year Ago) • johnnysins2000 (1 Year Ago)
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1877
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#2

Post by Raheem » 2 Years Ago

Great job....... So nice. Missing fix for years and it's finally out....
You don't know? Learn and you will know.

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

#3

Post by johnnysins2000 » 2 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: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

#4

Post by sam_bhosale4 » 2 Years 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("[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: 1877
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#5

Post by Raheem » 2 Years Ago

Don't use this plugin for now till it be fixed. Locked Temporarily.
You don't know? Learn and you will know.

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 576
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 47 times
Age: 19
Contact:

#6

Post by Jack GamePlay » 2 Years Ago

We have tried to fix crash & make the plugin better but we have failed.
This topic will be trashed.
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1877
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#7

Post by Raheem » 1 Year 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):
Jack GamePlay (1 Year Ago) • Turnedo (1 Year Ago)
You don't know? Learn and you will know.

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

#8

Post by sam_bhosale4 » 1 Year Ago

Raheem wrote:
1 Year 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: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#9

Post by johnnysins2000 » 1 Year Ago

sam_bhosale4 wrote:
1 Year Ago
Raheem wrote:
1 Year 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: 2 Years Ago
Location: INDIA
Has thanked: 5 times
Been thanked: 2 times
Age: 21
Contact:

#10

Post by sam_bhosale4 » 1 Year 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 2 guests