Raised This Month: $ Target: $400
 0% 

Check || && problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-17-2007 , 10:07   Re: Check || && problem
Reply With Quote #2

weapon is data 2.

This will check if player pick up one of the 3 awps

PHP Code:
#define WEAPONS_TO_CHECK_BITSUM    (1<<CSW_AWP)|(1<<CSW_G3SG1)|(1<<CSW_SG550)


public event_weap_pick_up(id) {
    if( !
is_user_connected(id) || !is_user_alive(id) || !get_cvar_num("amx_vipscript") )
        return
    
    if(  !( 
WEAPONS_TO_CHECK_BITSUM & (1<<read_data(2)) ) || Awp_User[id]  )
        return
        
    
set_task(0.1"drop_awp"id)
    
client_print(idprint_chat"Bla bla la la")

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-17-2007 at 11:50.
ConnorMcLeod 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 11:04.


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