Help me with the object moved
#1

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;
            }
        }
    }
}
Can anyone give me the reason why this rocket cant be exploded ?
Its just been shot and then get stuck. Its although didnt disappear
Reply


Messages In This Thread
Help me with the object moved - by Kenxxx - 23.04.2016, 06:05
Re: Help me with the object moved - by introzen - 23.04.2016, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)