06.03.2016, 17:54
You can do this without the need for any variables at all actually do it like this.
Code:
forward FadeBlood(objectid, alpha, time); public FadeBlood(objectid, alpha, time) { alpha -= 5; if(alpha) { SetDynamicObjectMaterial(objectid, 0, -1, "none", "none", 0xFF0000 | (alpha << 24)); SetTimerEx("FadeBlood", time, false, "iii", objectid, alpha, time); } else { DestroyDynamicObject(objectid); } }