Raised This Month: $ Target: $400
 0% 

WalkGuard - no camping/climbing/bug using - V1.3.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
amxxlover
Junior Member
Join Date: Mar 2010
Old 03-13-2010 , 21:02   Re: WalkGuard - no camping/climbing/bug using - V1.3.2
Reply With Quote #11

The blocking feature, would it be possible by a code edit to make it only blocking a defined team instead of both/all? I tried to understand how the bocking is done but couldnt find much about it inside the code. I expected to find here the handling what to do when the player enter a blocked area.

PHP Code:
public ZoneTouch(playerzone) {

    new 
zm pev(zoneZONEID)
    new 
userteam get_user_team(player)
    
    
// Admin mit Immunity brauchen nicht
    
if (admin_immunity && (get_user_flags(player) & ADMIN_IMMUNITY)) return
    
    
// Kill Bill
    
if ( (ZONEMODE:zm == ZM_KILL) || ((ZONEMODE:zm == ZM_KILL_T1) && (userteam == 1)) || ((ZONEMODE:zm == ZM_KILL_T2) && (userteam == 2)) ) 
        
set_task(0.1"ZoneModeKill"player)
    
    
// Camping
    
if ( (ZONEMODE:zm == ZM_CAMPING) || ((ZONEMODE:zm == ZM_CAMPING_T1) && (userteam == 1)) || ((ZONEMODE:zm == ZM_CAMPING_T2) && (userteam == 2)) ) {
        if (!
camping[player]) {
            
client_print(playerprint_center"%L"player"WALKGUARD_CAMPING_INIT")
            
// Gratulation ... Du wirst beobachtet
            
camperzone[player] = zone
            campertime
[player] = get_gametime()
            
camping[player] = get_gametime()
            
set_task(0.5"ZoneModeCamper"TASK_BASIS_CAMPER player__"b")
        } else {
            
// immer fleissig mitzählen
            
camping[player] = get_gametime()
        }
    }


Last edited by amxxlover; 03-13-2010 at 21:05.
amxxlover is offline
 


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 10:43.


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