Raised This Month: $ Target: $400
 0% 

Subplugin Submission ZP: Anti Block (fixed AGAIN)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 11-07-2008 , 01:49   ZP: Anti Block (fixed AGAIN)
Reply With Quote #1

[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 .
Attached Files
File Type: sma Get Plugin or Get Source (zp_antiblock.sma - 16512 views - 1.6 KB)

Last edited by bmann_420; 12-21-2008 at 13:32.
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-07-2008 , 02:08   Re: ZP: anti block
Reply With Quote #2

I think it would be cool if You change it to Extra Item that you can buy this ability.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 11-07-2008 , 02:12   Re: ZP: anti block
Reply With Quote #3

I think it does not cost to do, because as both not or it will be . There always are such players which it is special do .
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
ifx
Senior Member
Join Date: Apr 2008
Old 11-07-2008 , 07:20   Re: ZP: anti block
Reply With Quote #4

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 #5

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 #6

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 #7

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 #8

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
ifx
Senior Member
Join Date: Apr 2008
Old 11-07-2008 , 14:22   Re: ZP: anti block
Reply With Quote #9

my server crashes with this plugin, because console spam more output errors with your plugin. Can you test it before release?
ifx is offline
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 11-08-2008 , 13:58   Re: ZP: anti block
Reply With Quote #10

Quote:
Originally Posted by ifx View Post
my server crashes with this plugin, because console spam more output errors with your plugin. Can you test it before release?
I am test him, and until now he does not crash for me . And if you did not write оn this error I even not looked ...
I it can not correct , If who can ask to help us
This error :
Code:
[AMXX] Displaying debug trace (plugin "zp_antiblock.amxx")
[AMXX] Run time error 10: native error (native "zp_get_user_zombie")
[AMXX]    [0] zp_antiblock.sma::fwd_touch (line 40)

Last edited by CHyCMyMpNk; 12-12-2008 at 17:09.
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
Reply


Thread Tools
Display Modes

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