Wow nice, I see you fixed the debug problem.
Anyways, this is what I am trying to apply in my fs.
Код:
public ExplodeBodyParts(playerid)
{
new Float:aPos[3], Objects[8];
GetPlayerPos(playerid, aPos[0], aPos[1], aPos[2]);
if(!GetPlayerInterior(playerid)) GetPointZPos(aPos[0], aPos[1], aPos[2]);
Objects[0] = CreateObject(2905, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[1] = CreateObject(2906, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[2] = CreateObject(2907, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[3] = CreateObject(2908, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[4] = CreateObject(2906, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[5] = CreateObject(2907, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[6] = CreateObject(2908, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
Objects[7] = CreateObject(2906, aPos[0], aPos[1], aPos[2], 0.0, 0.0, 0.0);
#if defined BLOOD_EFFECT
CreateBloodEffect(aPos[0], aPos[1], aPos[2] - 0.5);
#endif
for(new i = Objects[0], j; i <= Objects[7]; ++i, ++j)
{
EffectOnObject(i, aPos[0], aPos[1], aPos[2]);
playerPart[i][Player] = playerid;
playerPart[i][Part] = j;
playerPart[i][EndEffect] = false;
}
SetPVarInt(playerid, "goreObjectIDStart", Objects[0]);
SetPVarInt(playerid, "goreOldVirtualWorld", GetPlayerVirtualWorld(playerid));
SetPlayerVirtualWorld( playerid, ( playerid + 10 ) * ( playerid + 10 ) + playerid );
return 1;
}
Why is that in my screen it didn't show any body part object it only show blood pop out after I use /kill? But do you think it will show body parts when I kill someone?