Raised This Month: $ Target: $400
 0% 

Subplugin Submission ZP: Anti Block (fixed AGAIN)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ifx
Senior Member
Join Date: Apr 2008
Old 11-07-2008 , 07:20   Re: ZP: anti block
Reply With Quote #1

excellent addition! u rule man, thank you!

PS. of course antiblock must be able for free to all players (humans and zombies)
ifx is offline
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 01-03-2010 , 10:24   Re: ZP: anti block
Reply With Quote #2

Nice !
__________________
Ciio is offline
Send a message via MSN to Ciio
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-03-2010 , 12:44   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #3

man PLEASE try doing this plugin by this method: http://forums.alliedmods.net/showthread.php?t=69728
and make it activate automatically when the distance between 2 teammates is less than X units
PLEASE PLEASE PLEASE
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-03-2010 , 12:50   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #4

Quote:
Originally Posted by georgik57 View Post
man PLEASE try doing this plugin by this method: http://forums.alliedmods.net/showthread.php?t=69728
and make it activate automatically when the distance between 2 teammates is less than X units
PLEASE PLEASE PLEASE
Try this,
PHP 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_antiblockFloat: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 solidsolid pev(idpev_solid)
    if(
solid == SOLID_NOT && (get_gametime() - g_lasttimetouched[id]) > 0.34)
        
set_pev(idpev_solidSOLID_BBOX)
 
    return 
FMRES_IGNORED
}
 
public 
fwd_touch(blockerid)
{

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

    
static button[2]
    
button[0] = pev(idpev_button), button[1] = pev(blockerpev_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
(blockerpev_solidSOLID_NOT), set_pev(idpev_solidSOLID_NOT)
 
        static 
Float:gametimegametime get_gametime()
        
g_lasttimetouched[id] = gametimeg_lasttimetouched[blocker] = gametime
    
    
return FMRES_IGNORED

__________________


SpILL is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-03-2010 , 15:55   Re: ZP: Anti Block (fixed AGAIN)
Reply With Quote #5

Quote:
Originally Posted by SpILL View Post
Try this,
again, here is my problem: players that are in semiclip can't take damage
and a second problem: the semiclip doesn't automatically activate when i'm near a teammate. i have to toutch that teammate in order for the semiclip to activate, so it hesitates(delayed activation)
http://www.youtube.com/watch?v=ocQOljLknmc
__________________

Last edited by georgik57; 01-03-2010 at 15:59.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 16:58.


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