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 )
__________________