17.07.2015, 02:37
Can i made attach object to player after 5 second of minutes, the object will automatic been destroy
PlayerObject[playerid] = CreateDynamicObject(19303, 0.0, 0.0, 0.0, 0, 0, 0);
AttachObjectToPlayer(PlayerObject[playerid], playerid, 0.0, 0.0, 0.0);
SetTimerEx("DestroyObject", 5000, false, "d", playerid);
forward DestroyObject(playerid);
public DestroyObject(playerid)
{
DestroyDynamicObject(PlayerObject[playerid]);
return 1;
}