Raised This Month: $51 Target: $400
 12% 

Subplugin Submission ZP: Anti Block (fixed AGAIN)


Post New Thread Reply   
 
Thread Tools Display Modes
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-19-2009 , 18:14   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #21

Don't make Double post, OK?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
N3messys
BANNED
Join Date: Jul 2009
Old 08-19-2009 , 18:26   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #22

I edited this plugin.So if i'm ducking,i can go through players.I hope it works
Attached Files
File Type: sma Get Plugin or Get Source (zp_antiblock.sma - 814 views - 1.6 KB)
N3messys is offline
IbaneZ
Senior Member
Join Date: May 2009
Old 08-20-2009 , 07:35   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #23

Ok, I could manage to make it work now.
But I think I found a huge bug. When I walk through a tunnel with a zombie and we are walking like into each other towards the humans, which are at the end of the tunnel, they cant shoot us.
IbaneZ is offline
Trinity
BANNED
Join Date: Jun 2009
Location: Bendery
Old 08-20-2009 , 12:47   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #24

Quote:
Originally Posted by CHyCMyMpNk View Post
[ZP]: anti block
(ability for human & zombie)
by Cheap_Suit edit for ZP by me .

Description :
At pressure on "E" (+USE) allows to pass through players which on incomprehensible you reasons are mixed . Then round start .

Fixed error .
Fixed another error .
Снусмурик!где тут + в репу?!?!
Trinity is offline
Send a message via ICQ to Trinity Send a message via Skype™ to Trinity
IbaneZ
Senior Member
Join Date: May 2009
Old 08-20-2009 , 21:23   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #25

Ok, I checked it a few more times and its true. If 2 zombies are stuck and move at the same time toward humans, you cannot shoot them. Please fix that! Otherwise its a really cool plugin!
IbaneZ is offline
eD.
Senior Member
Join Date: Oct 2009
Old 11-20-2009 , 11:41   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #26

can someone make this plugin for me but without pressing any keys! thanks!
eD. is offline
Shidla
Senior Member
Join Date: Nov 2008
Location: Russia, Moscow
Old 11-20-2009 , 13:20   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #27

Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <xs>
 
enum CsTeams
{
    CS_TEAM_UNASSIGNED    = 0,
    CS_TEAM_T         = 1,
    CS_TEAM_CT         = 2,
    CS_TEAM_SPECTATOR     = 3
}
 
#define OFFSET_TEAM 114
#define cs_get_user_team(%1) CsTeams:get_pdata_int(%1, OFFSET_TEAM)
 
new cvar_antiblock, Float:g_lasttimetouched[33] // lol
 
public plugin_init()
{
    register_plugin("anti block", "0.1", "cheap_suit")
    register_forward(FM_Touch, "fwd_touch")
    register_forward(FM_PlayerPreThink, "fwd_playerprethink")
    cvar_antiblock = register_cvar("zp_antiblock", "1")
}
 
public fwd_playerprethink(id)
{
    if(!is_user_alive(id))
        return FMRES_IGNORED
 
    static solid; solid = pev(id, pev_solid)
    if(solid == SOLID_NOT && (get_gametime() - g_lasttimetouched[id]) > 0.34)
        set_pev(id, pev_solid, SOLID_BBOX)
 
    return FMRES_IGNORED
}
 
public fwd_touch(blocker, id)
{

if(!is_user_alive(blocker) || !is_user_alive(id) || !get_pcvar_num(cvar_antiblock))
        return FMRES_IGNORED

    static button[2]
    button[0] = pev(id, pev_button), button[1] = pev(blocker, pev_button)

        static CsTeams:team[2]
        team[0] = cs_get_user_team(id), team[1] = cs_get_user_team(blocker)
 
        if(team[0] != team[1])
            return FMRES_IGNORED
 
        set_pev(blocker, pev_solid, SOLID_NOT), set_pev(id, pev_solid, SOLID_NOT)
 
        static Float:gametime; gametime = get_gametime()
        g_lasttimetouched[id] = gametime, g_lasttimetouched[blocker] = gametime
    
    return FMRES_IGNORED
}
__________________
[Russian Federation] NOT USSR
This is madness?! This is Shidla!
[ZP] Laser Mine 2.8.2 ML (NEW !!2013!!) | [ZP] New Win Msg 1.4
| [ZP] MutaDote 1.1
Shidla is offline
Send a message via ICQ to Shidla Send a message via Skype™ to Shidla
eD.
Senior Member
Join Date: Oct 2009
Old 11-20-2009 , 13:48   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #28

shidla thanks +karma
eD. is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 11-20-2009 , 18:13   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #29

doesnt compile ...
__________________

sunx is offline
Shidla
Senior Member
Join Date: Nov 2008
Location: Russia, Moscow
Old 11-21-2009 , 12:40   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #30

All right
__________________
[Russian Federation] NOT USSR
This is madness?! This is Shidla!
[ZP] Laser Mine 2.8.2 ML (NEW !!2013!!) | [ZP] New Win Msg 1.4
| [ZP] MutaDote 1.1
Shidla is offline
Send a message via ICQ to Shidla Send a message via Skype™ to Shidla
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode