Raised This Month: $ Target: $400
 0% 

[ Solved] cs_set_user_nvg -> fakemeta ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-29-2008 , 15:40   [ Solved] cs_set_user_nvg -> fakemeta ?
Reply With Quote #1

fast solve by Ex
__________________

Last edited by xPaw; 08-29-2008 at 16:05.
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-29-2008 , 15:54   Re: cs_set_user_nvg -> fakemeta ?
Reply With Quote #2

Code:
#define OFFSET_NVGOGGLES        129 #define HAS_NVGOGGLES           (1<<0) #define cs_get_user_nvg(%1) ((get_pdata_int(index, OFFSET_NVGOGGLES) & HAS_NVGOGGLES) ? 1 : 0) stock cs_set_user_nvg(index, nvgoggles = 1) {     new current = get_pdata_int(index, OFFSET_NVGOGGLES);         if( !(current & HAS_NVGOGGLES) && nvgoggles )     {         current |= HAS_NVGOGGLES;     }     else if( (current & HAS_NVGOGGLES) && !nvgoggles )     {         current &= ~HAS_NVGOGGLES;     }     else     {         return 0;     }         set_pdata_int(index, OFFSET_NVGOGGLES, current);         return 1; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 08-29-2008, 15:55
atomen
This message has been deleted by atomen. Reason: Damn Exolent...
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-29-2008 , 16:00   Re: cs_set_user_nvg -> fakemeta ?
Reply With Quote #3

thanks ;) +k again and again
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-29-2008 , 16:01   Re: cs_set_user_nvg -> fakemeta ?
Reply With Quote #4

Hi atomen.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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


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