23.04.2016, 06:05
pawn Код:
for(new i;i<MAX_PLAYERS;i++) // Loop through connected players
{
if(GetPVarInt(i, "EventToken") >= 1)
{
if(CarShooting[i] == 1)
{
if(objectid == gRocketObj[i]) // If this object is one of those player objects
{
new
Float:x,
Float:y,
Float:z;
GetObjectPos(gRocketObj[i], x, y, z); // Get the position of the object
CreateExplosion(x, y, z, 11, 3.0); // Create an explosion at this position
DestroyObject(gRocketObj[i]); // Destroy the object
FireShot[i] = 0;
}
}
}
}
Its just been shot and then get stuck. Its although didnt disappear