AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Football Touching Ent (https://forums.alliedmods.net/showthread.php?t=140666)

Stylaa 10-15-2010 08:44

Football Touching Ent
 
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)
    }




All times are GMT -4. The time now is 10:24.

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