Raised This Month: $ Target: $400
 0% 

Help with fade blood plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spanky McNutnut
AMX Mod X Beta Tester
Join Date: Feb 2006
Old 06-12-2006 , 13:50   Help with fade blood plugin
Reply With Quote #1

How would I make this last for only 1 sec after death?

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Blood Fade", "1.1", "No one")     register_event("DeathMsg", "DeathEvent", "a", "1>0", "2>0")   } public DeathEvent() {     new id = read_data(1)     message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);     write_short(~0)     write_short(3)     write_short(0x0000)     write_byte(255)     write_byte(0)     write_byte(0)     write_byte(150)     message_end() }
Spanky McNutnut is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-12-2006 , 14:08  
Reply With Quote #2

Try replace
Code:
    write_short(~0)     write_short(3)
with
Code:
    write_short(10000)     write_short(2222)
VEN is offline
Spanky McNutnut
AMX Mod X Beta Tester
Join Date: Feb 2006
Old 06-12-2006 , 14:21  
Reply With Quote #3

Works great thanks!
Spanky McNutnut 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 23:09.


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