CSPLague
Biohazard Mod Yardım++++ - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: Biohazard Mod Yardım++++ (/showthread.php?tid=10642)

Pages: 1 2


Cevap: Biohazard Mod Yardım++++ - mertan272 - 11-08-14

Güncel


Cevap: Biohazard Mod Yardım++++ - tifargemirhan - 11-08-14

"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




Cevap: Biohazard Mod Yardım++++ - mertan272 - 12-08-14

Bu ne hocam biraz acıklar mısınız?


Cevap: Biohazard Mod Yardım++++ - tifargemirhan - 12-08-14

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


Cevap: Biohazard Mod Yardım++++ - recep2 - 21-08-14

tmmdır