15.12.2015, 12:22
Hello, today i wanna share something i created today. This will create a blood like particle. ( i personally use it when a player is shot). i found this at other server and tried to clone it. It works pretty kay for me.
And this is the callback of the timer.
Pretty simple and useful, eh?
(i use it at "OnPlayerGiveDamage).
Looking for any constructive criticism on how this can be improved. (Crayder) :P
Код:
stock CreateBlood(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimerEx("DestroyBlood", 1500, false, "d", CreateDynamicObject(18668, x, y, z - 1.5, 0.0, 0.0, 0.0));
return 1;
}
Код:
forward DestroyBlood(objectid);
public DestroyBlood(objectid)
{
DestroyDynamicObject(objectid);
}
(i use it at "OnPlayerGiveDamage).
Looking for any constructive criticism on how this can be improved. (Crayder) :P

