Raised This Month: $ Target: $400
 0% 

bool in public return false alltime


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
steve139
Senior Member
Join Date: May 2007
Location: here
Old 09-02-2008 , 07:19   bool in public return false alltime
Reply With Quote #1

hello , i got a problem...

i wanted to do a bool function to check if the map is de_azteck and is in a zone


but the function return allways "false"
(
PHP Code:
if(( bomb_check_map(id))) { 
)

look my functions


PHP Code:
public bomb_check_map(id) {
    new 
mapname[32]
    
get_mapname(mapname,31)
    if((
equali(mapname,"de_aztec"))) {
        
bomb_check_de_aztec(id)
    }
    else {
        return 
0
    
}
    return 
PLUGIN_CONTINUE
    
    
}
public 
bomb_check_list_map() {
    new 
mapname[32]
    
get_mapname(mapname,31)
    if((
equali(mapname,"de_aztec"))) {
        return 
1
    
}
    else {
        return 
0
    
}
    return 
PLUGIN_CONTINUE
    
    
}
public 
bomb_check_de_aztec(id) {
    new 
u_origin[3]
    
get_user_origin(id,u_origin)
    new 
A_origin[3]
    
A_origin[0] = -575
    A_origin
[1] = -1483
    A_origin
[2] = -187

    
new B_origin[3]
    
B_origin[0] = -2121
    B_origin
[1] = 975
    B_origin
[2] = -187


    
new A_dis get_distance(u_origin,A_origin)
    new 
B_dis get_distance(u_origin,B_origin)
    
    if(( 
A_dis <= get_cvar_num("cs_bomb_dis") )) {
        return 
true
    
}
    else if(( 
B_dis <= get_cvar_num("cs_bomb_dis") )) {
        return 
true
    
}
    else {
        return 
false
    
}
    return 
PLUGIN_CONTINUE
    


anyone can help ?
steve139 is offline
 



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 03:06.


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