-
Scripting Help
(
https://forums.alliedmods.net/forumdisplay.php?f=11)
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_touch( g_szBallName, "walkguardzone", "fw_TouchBallGoal" );
Other Staff :
public fw_TouchBallGoal(zone, ent) { if (editor) return FMRES_IGNORED
if (!pev_valid(zone) ) return FMRES_IGNORED static classname[33] pev(ent, pev_classname, classname, 32) if (!equal(classname, g_szBallName)) return FMRES_IGNORED pev(zone, pev_classname, classname, 32) if (!equal(classname, "walkguardzone")) return FMRES_IGNORED if (roundstatus == RS_RUNNING) BallZoneTouch(ent, zone) return FMRES_IGNORED }
public BallZoneTouch(ent, zone) {
new zm = pev(zone, ZONEID)
if ( (ZONEMODE:zm == ZM_GOAL_T1) || (ZONEMODE:zm == ZM_GOAL_T2) ) { ColorChat(0, RED, "%s Goal!", PREFIX) } }
|
| All times are GMT -4. The time now is 10:24. |
|
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.