Raised This Month: $ Target: $400
 0% 

WalkGuard - no camping/climbing/bug using - V1.3.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-21-2007 , 10:37   Re: WalkGuard - no camping/climbing/bug using - V1.3.1
Reply With Quote #11

Code:
if (!pev_valid(zone) || !pev_valid(player)) return PLUGIN_CONTINUE
would be better ( && implies both conditions are true )

Try :

Code:
public pfn_touch(zone, player) {     if (editor) return FMRES_IGNORED     if (!pev_valid(zone) )         return FMRES_IGNORED     if (!pev_valid(player))         return FMRES_IGNORED     static classname[33]     pev(player, pev_classname, classname, 32)     if (!equal(classname, "player"))         return FMRES_IGNORED         pev(zone, pev_classname, classname, 32)     if (!equal(classname, "walkguardzone"))         return FMRES_IGNORED         if (roundstatus == RS_RUNNING)         ZoneTouch(player, zone)         return FMRES_HANDLED }

Last edited by ConnorMcLeod; 10-21-2007 at 10:40.
ConnorMcLeod is offline
 


Thread Tools
Display Modes

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


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