AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY] (https://forums.alliedmods.net/showthread.php?t=283943)

Amine Belokda 06-15-2016 11:27

[HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY]
 
All Coder
HELP Me
I Want Add Plugin Buy Base-IMMUNITY In My Base~Builder
And Thanks For All :oops:

OciXCrom 06-15-2016 15:35

Re: [HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY]
 
What?

dr hicham 06-16-2016 15:12

Re: [HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY]
 
Try Here !!

Amine Belokda 06-19-2016 02:02

Re: [HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY]
 
Quote:

Originally Posted by OciXCrom (Post 2427806)
What?

:grrr:

Houssam Benmouna 06-21-2016 08:16

Re: [HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY]
 
hhh Dr Hicham This Is Just Plugin BB_Lock :3

Houssam Benmouna 06-21-2016 16:11

Re: [HELP] Cs 1.6 BaseBuilder Buy [Base-IMMUNITY]
 
Remplace This Plugin In BB_Mod :wink:

PHP Code:

new bool:g_block[33

public 
plugin_init() 

register_clcmd("Cmd_zabzobalat7tifiha",    "cmdLockBlock"); 
register_event("HLTV""Round_Start""a""1=0""2=0"
... 


public 
Round_Start(id

  
g_block[id] = false 


public 
client_disconnect(id

  
g_block[id] = false 


public 
cmdLockBlock(id

    if (!
g_boolCanBuild && g_iLockBlocks
    { 
        
client_print(idprint_center"%L"LANG_SERVER"FAIL_LOCK"); 
        return 
PLUGIN_HANDLED
    } 
     
    if (
g_isZombie[id]) 
         
    if (
g_block[id]) 
    return 
PLUGIN_HANDLED
    else 
    { 
    
g_block[id] = true 
    
new entbodypart 
    get_user_aiming 
(id,ent,bodypart
     
    new 
szTarget[7], szClass[10]; 
    
entity_get_string(entEV_SZ_targetnameszTarget6); 
    
entity_get_string(entEV_SZ_classnameszClass9); 
    if (!
ent || !is_valid_ent(ent) || is_user_alive(ent) || ent == g_iEntBarrier || !equal(szClass"func_wall") || equal(szTarget"ignore")) 
        return 
PLUGIN_HANDLED
     
    
ExecuteForward(g_fwLockEnt_Preg_fwDummyResultident); 
     
    switch (
g_iLockBlocks
    { 
        case 
0
        { 
            if (!
BlockLocker(ent) && !IsMovingEnt(ent)) 
            { 
                
LockBlock(entid); 
                
set_pev(ent,pev_rendermode,kRenderTransColor
                
set_pev(ent,pev_rendercolor,Float:{LOCKED_COLOR}) 
                
set_pev(ent,pev_renderamt,Float:{LOCKED_RENDERAMT}) 
                
client_cmd(id"spk %s"LOCK_OBJECT); 
            } 
            else if (
BlockLocker(ent)) 
            { 
                
UnlockBlock(ent
                
set_pev(ent,pev_rendermode,kRenderNormal
                
client_cmd(id"spk %s"LOCK_OBJECT); 
            } 
        } 
        case 
1
        { 
            if (!
BlockLocker(ent) && !IsMovingEnt(ent)) 
            { 
                if (
g_iOwnedEntities[id]<g_iLockMax || !g_iLockMax
                { 
                    
LockBlock(entid
                    
g_iOwnedEntities[id]++ 
                    
set_pev(ent,pev_rendermode,kRenderTransColor
                    
set_pev(ent,pev_rendercolor,g_fColor[g_iColor[id]]) 
                    
set_pev(ent,pev_renderamt,Float:{LOCKED_RENDERAMT}) 
                     
                    
client_print(idprint_center"%L [ %d / %d ]"LANG_SERVER"BUILD_CLAIM_NEW"g_iOwnedEntities[id], g_iLockMax
                    
client_cmd(id"spk %s"LOCK_OBJECT); 
                } 
                else if (
g_iOwnedEntities[id]>=g_iLockMax
                { 
                    
client_print(idprint_center"%L"LANG_SERVER"BUILD_CLAIM_MAX"g_iLockMax
                    
client_cmd(id"spk %s"LOCK_FAIL); 
                } 
            } 
            else if (
BlockLocker(ent)) 
            { 
                if (
BlockLocker(ent) == id || access(idFLAGS_OVERRIDE)) 
                { 
                    
g_iOwnedEntities[BlockLocker(ent)]-- 
                    
set_pev(ent,pev_rendermode,kRenderNormal
                     
                    
client_print(BlockLocker(ent), print_center"%L [ %d / %d ]"LANG_SERVER"BUILD_CLAIM_LOST"g_iOwnedEntities[BlockLocker(ent)], g_iLockMax
                     
                    
UnlockBlock(ent
                    
client_cmd(id"spk %s"LOCK_OBJECT); 
                } 
                else 
                { 
                    
client_print(idprint_center"%L"LANG_SERVER"BUILD_CLAIM_FAIL"
                    
client_cmd(id"spk %s"LOCK_FAIL); 
                } 
            }     
        } 
    } 

    
ExecuteForward(g_fwLockEnt_Postg_fwDummyResultident); 
    } 
    return 
PLUGIN_HANDLED 


</span></span>


All times are GMT -4. The time now is 23:29.

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