It is currently 19 Sep 2018 21:41



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 6 posts ] 
 Cerere plugin wallhang + atac de pe perete [rezolvat!] 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 24 Aug 2018 19:10
Posts: 6
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
As dori si eu un plugin de atacat de pe perete cu wallhang, nu am vazut decat un singur server de furien cu asa ceva si as dori sa il am si eu! multumes!


Last edited by Do[N]e ;3 on 16 Sep 2018 23:00, edited 1 time in total.

Topic marcat ca rezolvat!



24 Aug 2018 19:13
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 24 Aug 2018 19:10
Posts: 6
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
UP!


29 Aug 2018 17:52
Profile multumesc WWW
Membru, skill +1
Membru, skill +1
User avatar

Joined: 18 Jun 2015 18:51
Posts: 142
Location: Suceava
Detinator Steam: Da
CS Status: Angent vânzări.
Detinator server CS: No
Fond eXtream: 0
la acesta te referi ?


30 Aug 2018 13:44
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 24 Aug 2018 19:10
Posts: 6
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
nu, l-am vazut si eu pe asta...e un cfg de mers pe perete, dar de asta am si eu. Am vrut unul in care pot sa si atac in timp ce merg pe perete, sau sa pot arunca grenazi.


30 Aug 2018 16:55
Profile multumesc WWW
Online
Moderator
Moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 1708
Location: Constanta
Detinator Steam: Da
CS Status: Nope
Detinator server CS: Nope
SteamID: Nope
Reputatie: Moderator
Fond eXtream: 0
Greu sa cauti pe google...
| Afiseaza codul
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>



#define VERSION "0.0.2"

#define XTRA_OFS_PLAYER 5
#define m_Activity 73
#define m_IdealActivity 74
#define m_flNextAttack 83
#define m_afButtonPressed 246

#define FIRST_PLAYER_ID 1
#define MAX_PLAYERS 32

#define PLAYER_JUMP 6

#define ACT_HOP 7

//#define FBitSet(%1,%2) (%1 & %2)

new g_iMaxPlayers
#define IsPlayer(%1) ( FIRST_PLAYER_ID <= %1 <= g_iMaxPlayers )

#define IsHidden(%1) IsPlayer(%1)

#define KNIFE_DRAW 3

new g_bHasWallHang
#define SetUserWallHang(%1) g_bHasWallHang |= 1<<(%1&31)
#define RemoveUserWallHang(%1) g_bHasWallHang &= ~(1<<(%1&31))
#define HasUserWallHang(%1) g_bHasWallHang & 1<<(%1&31)

new g_bHanged
#define SetUserHanged(%1) g_bHanged |= 1<<(%1&31)
#define RemoveUserHanged(%1) g_bHanged &= ~(1<<(%1&31))
#define IsUserHanged(%1) g_bHanged & 1<<(%1&31)

new Float:g_fVecMins[MAX_PLAYERS+1][3]
new Float:g_fVecMaxs[MAX_PLAYERS+1][3]
new Float:g_fVecOrigin[MAX_PLAYERS+1][3]

new bool:g_bRoundEnd

public plugin_init()
{
register_plugin("Furien WallHang", VERSION, "ConnorMcLeod")

RegisterHam(Ham_Player_Jump, "player", "Player_Jump")

RegisterHam( Ham_Spawn, "player", "Ham_PlayerSpawnPost", true );
RegisterHam( Ham_Killed, "player", "Ham_PlayerKilledPost", true );
RegisterHam(Ham_Touch, "func_wall", "World_Touch")
RegisterHam(Ham_Touch, "func_breakable", "World_Touch")
RegisterHam(Ham_Touch, "worldspawn", "World_Touch")

g_iMaxPlayers = get_maxplayers()

register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
register_logevent("Logevent_Round_End", 2, "1=Round_End")
}

public Ham_PlayerSpawnPost( id )
{
if( is_user_alive( id ) )
{
if( get_user_team( id ) == 1 )
{
if( get_user_flags( id ) & ADMIN_CVAR )
{
SetUserWallHang( id );
RemoveUserHanged( id );
}
}
else
{
RemoveUserWallHang( id );
RemoveUserHanged( id );
}
}
}

public Ham_PlayerKilledPost( id )
{

RemoveUserHanged( id );
return HAM_IGNORED;

}
public Event_HLTV_New_Round()
{
g_bRoundEnd = false
}

public Logevent_Round_End()
{
g_bRoundEnd = true
g_bHanged = 0
}

public client_putinserver( id )
{
RemoveUserWallHang( id )
RemoveUserHanged( id )
}

public furien_round_restart()
{
g_bHasWallHang = 0
g_bHanged = 0
}

public Player_Jump(id)
{
if( g_bRoundEnd
|| ~HasUserWallHang(id)
|| ~IsUserHanged(id)
|| !is_user_alive(id) )
{
return HAM_IGNORED
}

if( (pev(id, pev_flags) & FL_WATERJUMP) || pev(id, pev_waterlevel) >= 2 )
{
return HAM_IGNORED
}

static afButtonPressed ; afButtonPressed = get_pdata_int(id, m_afButtonPressed)

if( ~afButtonPressed & IN_JUMP )
{
return HAM_IGNORED
}

RemoveUserHanged(id)

new Float:fVecVelocity[3]

velocity_by_aim(id, 600, fVecVelocity)
set_pev(id, pev_velocity, fVecVelocity)

set_pdata_int(id, m_Activity, ACT_HOP)
set_pdata_int(id, m_IdealActivity, ACT_HOP)
set_pev(id, pev_gaitsequence, PLAYER_JUMP)
set_pev(id, pev_frame, 0.0)
set_pdata_int(id, m_afButtonPressed, afButtonPressed & ~IN_JUMP)

return HAM_SUPERCEDE
}


public client_PostThink(id)
{
if( HasUserWallHang(id) && IsUserHanged(id) )
{
engfunc(EngFunc_SetSize, id, g_fVecMins[ id ], g_fVecMaxs[ id ])
engfunc(EngFunc_SetOrigin, id, g_fVecOrigin[ id ])
set_pev(id, pev_velocity, 0)
//set_pdata_float(id, m_flNextAttack, 1.0, XTRA_OFS_PLAYER)
}
}

public World_Touch(iEnt, id)
{
if( !g_bRoundEnd
&& IsPlayer(id)
&& HasUserWallHang(id)
&& ~IsUserHanged(id)
&& is_user_alive(id)
&& pev(id, pev_button) & IN_USE
&& ~pev(id, pev_flags) & FL_ONGROUND )
{
SetUserHanged(id)
pev(id, pev_mins, g_fVecMins[id])
pev(id, pev_maxs, g_fVecMaxs[id])
pev(id, pev_origin, g_fVecOrigin[id])
}
}

_________________


30 Aug 2018 17:10
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 24 Aug 2018 19:10
Posts: 6
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
l-am cautat dar nu l-am gasit.... multumesc! puteti da T/C!


30 Aug 2018 18:06
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: RealAlexanderTr and 61 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group