23.05.2015, 16:33
Se quiser fazer igual o rapaz falou, use como base isso:
PHP код:
new Objeto[MAX_PLAYERS];
new Float:x, Float:y, Float:z, Float:a;
GetVehiclePos(vehicleid, x, y, z);
GetVehicleZAngle(vehicleid, a);
Objeto[playerid] = CreateObject(SeuObjeto, x ,y, z, 0, 0, a, 300);
MoveObject(Objeto[playerid], x, y, z, 50.0);
SetTimerEx("Explosao", 600, 0, "i", playerid);
forward Explosao(playerid);
public Explosao(playerid)
{
new Float:x, Float:y, Float:z;
GetObjectPos(Objeto[playerid], x, y, z);
CreateExplosion(playerid, x, y, z, 2, 10);
DestroyObject(Objeto[playerid]);
return 1;
}