Raised This Month: $ Target: $400
 0% 

how long are you flashed?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 05:37   how long are you flashed?
Reply With Quote #1

I wounder for how you are flashed. Any way of counting out that?
__________________
Sig(h)!
Obbin is offline
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 01-02-2006 , 06:03  
Reply With Quote #2

Code:
/* // msglogging plugin was used. MessageBegin ScreenFade(98) Arguments=7 Destination=One(1) Origin={0.000000 0.000000 0.000000} Entity=1 Classname=player Netname=jsauce Arg 1 (Short): 20851 Arg 2 (Short): 3112 Arg 3 (Short): 0 Arg 4 (Byte): 255 Arg 5 (Byte): 255 Arg 6 (Byte): 255 Arg 7 (Byte): 200 MessageEnd ScreenFade(98) */
The first two arguments determine the length of the flash and the last arg determines the level of the flash, whether its solid or transparent. So the higher the numbers in the first two args the longer it lasts. But i believe these are completely determined by the engine itself based on the distance from the flash and whether you were directly looking at it.
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 08:00  
Reply With Quote #3

EDIT: everything solved but now i get an loose idention on the last return PLUGIN_CONTINUE, why?
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN  "Test" #define VERSION "Test" #define AUTHOR  "Test" new g_nMsgScreenFade public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR)     register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>199")     g_nMsgScreenFade = get_user_msgid("ScreenFade") } public FlashedEvent( id ) {     if( is_user_admin( id ) && !is_user_alive( 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 (0)          // Red     write_byte (0)          // Green     write_byte (0)          // Blue     write_byte ( read_data( 7 ) )   // Alpha     message_end()     return PLUGIN_HANDLED     } return PLUGIN_CONTINUE }

Thank you.
__________________
Sig(h)!
Obbin is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 01-02-2006 , 10:52  
Reply With Quote #4

Put

#pragma tabsize 0

at the top of your script

Loose indentation is because you didn't indent good

Good Indentation
Code:
get_bemode() {     new bemode[10]     get_cvar_string("bomb_mode",bemode,9)     return read_flags(bemode) }

Bad Indentation
Code:
get_bemode() {  new bemode[10]     get_cvar_string("bomb_mode",bemode,9) return read_flags(bemode) }
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 12:17  
Reply With Quote #5

Ok, thx!
__________________
Sig(h)!
Obbin is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-02-2006 , 13:57  
Reply With Quote #6

Quote:
Originally Posted by Dizzy
Put

#pragma tabsize 0

at the top of your script
Plugin approvers don't like this.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 16:04.


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