Raised This Month: $ Target: $400
 0% 

[SOLVED] func_escapezone


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 03-28-2014 , 05:05   [SOLVED] func_escapezone
Reply With Quote #1

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Touch"func_escapezone""FwdTouchEscapezone")
}
public 
FwdTouchEscapezone(entid) {
    if(
is_user_alive(id) && g_vip[id]) {
        new 
players[32], inumtempid
        get_players
(players,inum,"aeh","TERRORIST")
        for(new 
i;i<inum;i++) {
            
tempid players[i]
            
            
user_kill(tempid1)
        }
    }
    return 
HAM_IGNORED

When it comes to vip escape zone team get killed all the terrorists.

Last edited by wTf.; 03-29-2014 at 05:46.
wTf. is offline
minato
Senior Member
Join Date: May 2010
Location: Rosario
Old 03-28-2014 , 13:31   Re: func_escapezone
Reply With Quote #2

you can be more specific

what's the problem?

does not work?
__________________
minato is offline
Send a message via MSN to minato
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 03-29-2014 , 05:45   Re: func_escapezone
Reply With Quote #3

Yes, does not work.

T team doesn't die, vip player is coming to in the escape zone
wTf. is offline
minato
Senior Member
Join Date: May 2010
Location: Rosario
Old 03-29-2014 , 15:24   Re: func_escapezone
Reply With Quote #4

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_Touch"clientTouch");
}

public 
clientTouchpd pi
{
    new class[
64];
    
pev(pd,pev_classname, class, charsmax(class));
    
    if( 
is_user_alive(pi)  && g_vip[pi] )
    {
        if( 
equal(class, "func_escapezone")  || equal(class,"func_vip_safetyzone") )
        {
                new 
players[32], inumtempid
                get_players
(players,inum,"aeh","TERRORIST")
                
                for (new 
0inumi++)
                {
                        
// this not be executed if not there terrorists is online
                        
tempid players[i]
                        
user_silentkill(tempid);
                         
                }
        }
    }
    return 
FMRES_IGNORED;

__________________
minato is offline
Send a message via MSN to minato
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 03-29-2014 , 16:12   Re: func_escapezone
Reply With Quote #5

Thnx
wTf. is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 03-30-2014 , 04:25   Re: func_escapezone
Reply With Quote #6

Quote:
Originally Posted by minato View Post
PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_Touch"clientTouch");
}

public 
clientTouchpd pi
{
    new class[
64];
    
pev(pd,pev_classname, class, charsmax(class));
    
    if( 
is_user_alive(pi)  && g_vip[pi] )
    {
        if( 
equal(class, "func_escapezone")  || equal(class,"func_vip_safetyzone") )
        {
                new 
players[32], inumtempid
                get_players
(players,inum,"aeh","TERRORIST")
                
                for (new 
0inumi++)
                {
                        
// this not be executed if not there terrorists is online
                        
tempid players[i]
                        
user_silentkill(tempid);
                         
                }
        }
    }
    return 
FMRES_IGNORED;

DON'T USE FM_Touch

Use register_touch
__________________
simanovich is offline
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 03-30-2014 , 07:39   Re: [SOLVED] func_escapezone
Reply With Quote #7

Hmm thnx

like that?

PHP Code:
register_touch("*""player""FwdEscapeZone")

public 
FwdEscapeZone(touchertouched) { 
    new class[
64]; 
    
pev(toucherpev_classname, class, charsmax(class)); 
    
    if(
is_user_alive(touched)  && g_vip[touched]) { 
        if(
equal(class, "func_escapezone")  || equal(class,"func_vip_safetyzone")) { 
            new 
players[32], inumtempid 
            get_players
(players,inum,"aeh","TERRORIST"
            for(new 
0;i<inum;i++)  { 
                
tempid players[i
                
user_kill(tempid,1); 
            } 
        } 
    } 
    return 
PLUGIN_HANDLED

wTf. is offline
minato
Senior Member
Join Date: May 2010
Location: Rosario
Old 03-30-2014 , 14:53   Re: [SOLVED] func_escapezone
Reply With Quote #8

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_touch("*""player""touchFunc")
    
}

public 
touchFunc(touched,toucher) { 
    new class[
64]; 
    
pev(touchedpev_classname, class, charsmax(class)); 
    
    if(
is_user_alive(toucher) ) && g_vip[toucher]).
    { 
    
        if(
equal(class, "func_escapezone")  || equal(class,"func_vip_safetyzone")) { 
            new 
players[32], inumtempid 
            get_players
(players,inum,"aeh","TERRORIST"
            for(new 
0;i<inum;i++)  { 
                
tempid players[i
                
user_kill(tempid,1); 
                
            } 
            
        } 
    } 
    return 
PLUGIN_CONTINUE

__________________
minato is offline
Send a message via MSN to minato
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 03-31-2014 , 09:16   Re: [SOLVED] func_escapezone
Reply With Quote #9

Quote:
Originally Posted by minato View Post
PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_touch("*""player""touchFunc")
    
}

public 
touchFunc(touched,toucher) { 
    new class[
64]; 
    
pev(touchedpev_classname, class, charsmax(class)); 
    
    if(
is_user_alive(toucher) ) && g_vip[toucher]).
    { 
    
        if(
equal(class, "func_escapezone")  || equal(class,"func_vip_safetyzone")) { 
            new 
players[32], inumtempid 
            get_players
(players,inum,"aeh","TERRORIST"
            for(new 
0;i<inum;i++)  { 
                
tempid players[i
                
user_kill(tempid,1); 
                
            } 
            
        } 
    } 
    return 
PLUGIN_CONTINUE

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init() {
    
register_plugin("Test""""Someone");
    
    
register_touch("func_escapezone""player""touchFunc");

    
register_touch("func_vip_safetyzone""player""touchFunc");
}

public 
touchFunc(touched,toucher) { 
    if(
is_user_alive(toucher)) && g_vip[toucher])
    { 
        new 
players[32], inumtempid;
        
get_players(players,inum,"ae","TERRORIST");
            
        for(new 
0;i<inum;i++)
        { 
            
tempid players[i];
            
user_kill(tempid,1);
        } 
            
    }

    return 
PLUGIN_CONTINUE

__________________
simanovich is offline
Reply



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 06:03.


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