Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Biohazard Mod Yardım++++
#11
Güncel
Reply
#12
"e" Fonksyonu ile Semiclip Aktivasyonunu Gerçekleştırme

PHP Code:
#include <amxmodx>
#include <fakemeta>
#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)
    
    if(
button[0] & IN_USE || button[1] & IN_USE) {
        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

Reply
#13
Bu ne hocam biraz acıklar mısınız?
Reply
#14
mertan272 dateline='' Wrote: Bu ne hocam biraz acıklar mısınız?
"e" Fonksyonu ile Semiclip Aktivasyonunu Gerçekleştırme
Reply
#15
tmmdır
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass Sprite [YARDIM] chirkinqral 9 3,383 31-05-16, 00:48
Last Post: enestricks
  Pluginde hata lütfen yardım :) tarlacixx 2 4,952 10-04-15, 12:45
Last Post: kedusa
  Yardım istek hasanx9 4 2,013 06-03-15, 04:36
Last Post: bireysel
  Istegim icerde yardım hasanx9 7 2,843 21-02-15, 00:11
Last Post: eneskaraca55
  Ufak bi yardim t4t1fati 6 2,756 20-02-15, 23:59
Last Post: eneskaraca55
  Jail Serverime Jbşhop Ekliyorum Ama Olmuryor Yardım Edermisiniz starkovboy1 2 4,063 20-02-15, 04:15
Last Post: beoujolf
  BioHazard UYUMLU Vip Menu KeNZ0 9 15,155 14-01-15, 01:15
Last Post: Neith
  Şapka~Ayakkabı eklemem ıcın plugın lazım amxx- sma sı olan yardım edın prov 7 6,764 04-08-14, 20:21
Last Post: gewer44
  [YARDIM]Arkadaşlar BB modunda Adminler istediği zaman duvar hareket ettiriyorlar 7gulgun7 23 12,248 04-08-14, 19:30
Last Post: lovbattery rh
  SIlah Menu yardım ugurdogan 5 7,746 27-07-14, 21:09
Last Post: ugurdogan

Foruma Atla:


Users browsing this thread: 3 Guest(s)