My code should work.
#1

it should explode when target is near the object (While the object is Moving)
pawn Код:
GetPlayerPos(targetid, tx, ty, tz);
        if(IsPlayerInRangeOfPoint(targetid,3.0, x, y, z) && targetid != playerid && IsPlayerInAnyVehicle(targetid))
        {
            for(new i;i<MAX_PLAYERS;i++)
            {
                CreateExplosion(tx, ty, tz, 11, 5.0);
                DestroyObject(gRocketObj[i]);
            }
        }
        else if(!IsPlayerInRangeOfPoint(targetid,3.0, x, y, z))
        {

        }
    }
}
it's under OnPlayerKeyStateChange and i'm using MoveObject
Reply


Messages In This Thread
My code should work. - by Rudy_ - 28.07.2012, 20:58
Re: My code should work. - by milanosie - 28.07.2012, 21:31
Re: My code should work. - by Rudy_ - 29.07.2012, 09:57
Re: My code should work. - by Rudy_ - 29.07.2012, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)