Raised This Month: $ Target: $400
 0% 

Football Touching Ent


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-15-2010 , 08:44   Football Touching Ent
Reply With Quote #1

Im using this Walkguard

http://forums.alliedmods.net/showthread.php?p=477672


i added this Code

What did i Wrong?

PHP Code:
plugin_init 

register_touchg_szBallName"walkguardzone""fw_TouchBallGoal" );

Other Staff :


public 
fw_TouchBallGoal(zoneent)
{
    if (
editor) return FMRES_IGNORED

    
if (!pev_valid(zone) )
        return 
FMRES_IGNORED
        
    
static classname[33]
    
pev(entpev_classnameclassname32)
    if (!
equal(classnameg_szBallName)) 
        return 
FMRES_IGNORED
    
  
    
    pev
(zonepev_classnameclassname32)
    if (!
equal(classname"walkguardzone")) 
        return 
FMRES_IGNORED
        
   
    
if (roundstatus == RS_RUNNING
        
BallZoneTouch(entzone)
    
    return 
FMRES_IGNORED
}

public 
BallZoneTouch(entzone) {

    new 
zm pev(zoneZONEID)

    if ( (
ZONEMODE:zm == ZM_GOAL_T1) || (ZONEMODE:zm == ZM_GOAL_T2) ) {
        
ColorChat(0RED"%s Goal!"PREFIX)
    }

__________________

Some People brings Happynes by Coming
Some by Going

Last edited by Stylaa; 10-15-2010 at 12:51.
Stylaa is offline
Send a message via ICQ to Stylaa
 



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:24.


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