AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with fade blood plugin (https://forums.alliedmods.net/showthread.php?t=29779)

Spanky McNutnut 06-12-2006 13:50

Help with fade blood plugin
 
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() }

VEN 06-12-2006 14:08

Try replace
Code:
    write_short(~0)     write_short(3)
with
Code:
    write_short(10000)     write_short(2222)

Spanky McNutnut 06-12-2006 14:21

Works great thanks!


All times are GMT -4. The time now is 23:09.

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