08.02.2010, 22:52
Nice INC man!!
Great work
Gotta question, how can I make this:
to work by crashing the car and when you get killed?
EDIT: Also, how can I make this
to be first white(clear) and then to fade to black?
Thanks!
Great work

Gotta question, how can I make this:
pawn Code:
#include <a_samp>
#include <j_fader>
new Float:gTmp;
new Float:pOldHealth[MAX_PLAYERS];
public OnFilterScriptInit()
{
FadeInit();
return 1;
}
public OnFilterScriptExit()
{
FadeExit();
return 1;
}
public OnPlayerConnect(playerid)
{
FadePlayerConnect(playerid);
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
FadePlayerDisconnect(playerid);
return 1;
}
public OnPlayerUpdate(playerid)
{
GetPlayerHealth(playerid,gTmp);
if(pOldHealth[playerid]>gTmp)
{
FadeColorForPlayer(playerid,255,0,0,floatround(pOldHealth[playerid]-gTmp)*10,255,0,0,0,floatround(pOldHealth[playerid]-gTmp),0);
}
pOldHealth[playerid]=gTmp;
return 1;
}
EDIT: Also, how can I make this
pawn Code:
FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0);
Thanks!