Raised This Month: $ Target: $400
 0% 

Detect teleporting on fail at bhop map


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-11-2013 , 05:02   Re: Detect teleporting on fail at bhop map
Reply With Quote #5

Hmm okay, I have this code now and it's working, but as I thought it will execute the code also on teleporters.

PHP Code:
public ent_touch(ent,player)
{
    if(!
pev_valid(ent) || !pev_valid(player))
        return 
HAM_IGNORED;
    
    new 
ent_class[33];
    
pev(entpev_classname,  ent_class32)
    
    if(
equali(ent_class"trigger_teleport") && g_Impossible[player])
    {
        
user_kill(player)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

__________________
Kia is offline
 



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 16:23.


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