Raised This Month: $ Target: $400
 0% 

msg to pecevich person


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-20-2006 , 23:09   msg to pecevich person
Reply With Quote #1

umm i'm tired of tryin to do this so could so one help
here is sum codes where is my problem
this is from v3x plugin i'm just trying to make it work with my plugin.......
Code:
public FlashedEvent(id, wId )     {     new iMode = get_cvar_num("amx_fb_mode")         if ( !iMode )         if(hasFLASHNADE[id] == true)         {         if(wId == CSW_FLASHBANG) return PLUGIN_CONTINUE                 new iRed,iGreen,iBlue                 switch( iMode )         {             case 1:             {                 iRed =   get_cvar_num("amx_fb_r")                 iGreen = get_cvar_num("amx_fb_g")                 iBlue =  get_cvar_num("amx_fb_b")             }             case 2:             {                 iRed =   random_num(0,255)                 iGreen = random_num(0,255)                 iBlue =  random_num(0,255)             }         }                 if ( !( iRed ) || !( iGreen ) || !( iBlue ) )             {             iRed =   100             iGreen = 100             iBlue =  100         }                 message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0}, hasFLASHNADE[id])         write_short( read_data( 1 ) )   // Duration         write_short( read_data( 2 ) )   // Hold time         write_short( read_data( 3 ) )   // Fade type         write_byte ( iRed )     // Red         write_byte ( iGreen )       // Green         write_byte ( iBlue )        // Blue         write_byte ( read_data( 7 ) )   // Alpha         message_end()                 return PLUGIN_HANDLED     }     return PLUGIN_CONTINUE }
what i need is how to make the msg for only one user that i want (hasFLASHNADE[id]) but i have no idea how to do that so plz try to help me...
k007 is offline
Send a message via MSN to k007
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-21-2006 , 08:06  
Reply With Quote #2

Code:
if(hasFLASHNADE[id]) {         message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0}, id)         write_short( read_data( 1 ) )    // Duration         write_short( read_data( 2 ) )    // Hold time         write_short( read_data( 3 ) )    // Fade type         write_byte ( iRed )        // Red         write_byte ( iGreen )        // Green         write_byte ( iBlue )        // Blue         write_byte ( read_data( 7 ) )    // Alpha         message_end() }
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit 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 08:03.


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