Raised This Month: $ Target: $400
 0% 

func_bomb_target


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-17-2010 , 02:52   Re: func_bomb_target
Reply With Quote #7

You can make a stock or macro for it:
Code:
stock is_user_in_plant_zone( id ) {     return (cs_get_user_mapzones(index) & CS_MAPZONE_BOMBTARGET) } // Or a macro will be more effecient #define is_user_in_plant_zone(%1) (cs_get_user_mapzones(index) & CS_MAPZONE_BOMBTARGET)
Usage:
Code:
public some_function( id ) {     if ( is_user_in_plant_zone( id ) )         client_print( id, print_chat, "What r u waiting for ?? Plant the Bomb !!" ) }
But it would be better if you check whether the user is in the plant zone by using emps' method ( Checking min's and max's )
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
 



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 11:28.


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