Raised This Month: $ Target: $400
 0% 

[solved]catch smoke grenade bought


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-10-2009 , 14:43   Re: catch smoke grenade bought
Reply With Quote #1

DO NOT USE THE CODE IN THIS POST

/win

PHP Code:
#include < amxmodx >
#include < cstrike >
#include < engine >

public client_PreThinkiPlayer ) {
    if( 
is_user_aliveiPlayer ) ) {
        static 
iOldMoney33 ], bool:bHadSmoke33 ];
        static 
Float:fLastMoneyChange33 ], Float:fLastSmokeChange33 ];
        
        new 
iMoney cs_get_user_moneyiPlayer );
        new 
iSmoke cs_get_user_bpammoiPlayerCSW_SMOKEGRENADE );
        
        if( 
iMoney iOldMoneyiPlayer ] ) {
            
fLastMoneyChangeiPlayer ] = get_gametime( );
        }
        
        if( 
iSmoke && !bHadSmokeiPlayer ] ) {
            
fLastSmokeChangeiPlayer ] = get_gametime( );
        }
        
        if( 
floatabsfLastMoneyChangeiPlayer ] - fLastSmokeChangeiPlayer ] ) < 0.3 ) {
            
// player bought smoke
        
}
        
        
iOldMoneyiPlayer ] = iMoney;
        
bHadSmokeiPlayer ] = ( iSmoke );
    }

lol
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 11-10-2009 at 18:29.
Exolent[jNr] is offline
Reply



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 17:41.


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